KTemporaryFile::createLocalFile()

Thiago Macieira thiago at kde.org
Thu Jul 5 16:38:42 BST 2007


Oswald Buddenhagen wrote:
>now you exposed you ignorance about posix semantics. :-P
>assume temp files in /tmp. this dir is sticky. no user (except root, but
>root being trustable is a premise anyway) can rename or delete (and thus
>replace) another user's files. => we are safe.

The best protection we have is a private temporary directory, one which no 
other user can access.

The sticky bit doesn't solve the problem related to creating a file, 
deleting, then recreating it with the same name (which is what Dominik 
wanted).

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070705/a76c19ba/attachment.sig>


More information about the kde-core-devel mailing list