[RFC][PATCH] loginuid through procfs (+ a question)

Stephen Smalley sds at epoch.ncsc.mil
Fri Jan 14 15:00:41 UTC 2005


On Thu, 2005-01-13 at 18:00, Steve Grubb wrote:
> I see places in the kernel setting -1 for uid on init, though. For example, 
> look at security/keys/keyctl.c

Ah, good point.  And even the functions in kernel/sys.c for setting uids
use (uid_t)-1 as a magic value to indicate that no change is desired.

Hence, possibly (uid_t)-1 is safe to use for the unset loginuid.
 
-- 
Stephen Smalley <sds at epoch.ncsc.mil>
National Security Agency




More information about the Linux-audit mailing list