Subject: Re: per-user /tmp
To: None <tech-security@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: tech-security
Date: 02/03/2007 19:44:30
Elad Efrat wrote:
> Christian Biere wrote:
> > Don't you want to do the open()/fstat()/fchown()/fchmod() dance here?
 
In order to prevent unintentionally donating a file or directory when
mkdir() fails.
 
> > Maybe the login instead of the uid should be used? It's more readable
> > once on disk and you can have multiple logins with the same uid but
> > not vice-versa.
 
> this is not how magic symlinks work.

Well, bug or feature? Isn't that inconsistent if some tools/features only
consider the UID whereas others use the login?

-- 
Christian