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(a)epoch.ncsc.mil>
National Security Agency