Why no setuid for root in V7 kernel?

Henry Spencer henry at utzoo.UUCP
Sat Mar 2 11:37:09 AEST 1985


> In the V7 kernel, the SUID code under the comment "set SUID/SGID protections"
> in sys1.c sets the uid for a SUID file only if u.u_uid != 0.
> 
> Does anybody know why this is so?

We concluded quite a long time ago that, whatever the intent of this
code, the refusal to setuid for root was effectively a bug.  We fixed
it.  No problems.  I recommend that everyone else do so.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.unix mailing list