The debian-private mailing list leak, part 1. Volunteers have complained about Blackmail. Lynchings. Character assassination. Defamation. Cyberbullying. Volunteers who gave many years of their lives are picked out at random for cruel social experiments. The former DPL's girlfriend Molly de Blanc is given volunteers to experiment on for her crazy talks. These volunteers never consented to be used like lab rats. We don't either. debian-private can no longer be a safe space for the cabal. Let these monsters have nowhere to hide. Volunteers are not disposable. We stand with the victims.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /tmp usage and security



From: Kevin Dalley <kevin@aimnet.com>
> The man page and info page for tmpfile do not mention that the file is 
> deleted immediately, merely that it is deleted when closed or when the 
> program is terminated. It would be nice to have a more explicit
> explanation.

Yes. I happened to know how delete-on-terminate is implemented, but not
everyone would.

> Of course, the creation/deletion is not an atomic operation.

Actually, create is atomic when you use (O_CREAT|O_EXCL) in the flags to
open().

> If there is a risk without tmpfile, then the risk remains with tmpfile,
> though the risk is reduced because of the smaller window.

No window for open because of the flags, no window for rename because the
directory has the sticky-bit set. It looks pretty safe.

For the next exercise, create a file with its permissions set to 0. As long
as you hold a file descriptor on it and it is not on an NFS volume, you can
still read and write it.

	Bruce
-- 
Can you get your operating system fixed when you need it?
Linux - the supportable operating system. http://www.debian.org/support.html
Bruce Perens K6BP   bruce@debian.org   NEW PHONE NUMBER: 510-620-3502


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-private-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .