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: mennucci@cibs.sns.it (Andrea Mennucci)
> char *good_temp_filename(char *name)
> this function, given a name, builds a good filename for a file in /tmp/
> using name as a prefix

Please see mkstemp(3), tmpnam(3), tempnam(3), and tmpfile(3).

Of them, the best is tmpfile(), because it creates a unique temporary file
and _immediately_deletes_it_ while still holding an open file descriptor on
it, so that you can only access it via its file descriptor and nobody else
can open it. When your process dies or you close the file descriptor, the
file's storage is deallocated.

I bet lots of you didn't know that you could have a file that existed, but
had no name. There's an arcane Bash syntax for handling file descriptors, so
this can be used for scripts.

	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 .