Subject: Re: Per-user temp storage
To: None <email@example.com>
From: Darren Reed <firstname.lastname@example.org>
Date: 03/04/1997 11:36:43
In some email I received from email@example.com, sie wrote:
> With the popularity of race conditions involving /tmp and such, would
> the idea of a per-user temporary storage space be helpful?
> I was thinking of modifying the memory filesystem to do some magic
> based on the user using /tmp.
I've read some of the other good suggestions/solutions to this problem
but just wanted to float one by that just occurred to me:
what if when you login to a netbsd box (be it rsh, rlogin, telnet, etc),
it mounted "/tmp/user" onto "/tmp", so that any reference to /tmp would
(in reality) be /tmp/user. This wouldn't(?) require any kernel hacks,
except to support mounting like that (unless it doesn't happen now).
This would also stop the "trojan in /tmp" problem, and if it was mounted
to not recognise setuid programs, other benefits could be had as well,