Subject: Re: Per-user temp storage
To: None <explorer@flame.org>
From: Darren Reed <darrenr@arbld.unimelb.edu.au>
List: tech-kern
Date: 03/04/1997 11:36:43
In some email I received from explorer@flame.org, 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,
perhaps.
Darren