System V.2.2 setuid() broken
Boyd Roberts
boyd at basser.oz
Wed Jul 13 11:27:33 AEST 1988
I'm root and I run a non-root setuid executable. Then I want
to fork() a shell and do the usual:
setuid(getuid())
Of course, I get EPERM, because setuid() is broken. Now is this
a generic System V bug. I think it is. Clarification please?
I think what I have is pretty generic SysV. V8 & 32V do the _right_
thing, they work. System V has, of course, a mind of it's own.
I _know_ it's a bit silly, but it should _work_. UNIX did.
Boyd Roberts boyd at basser.cs.su.oz
boyd at necisa.necisa.oz
``When the going gets wierd, the weird turn pro...''
More information about the Comp.unix.wizards
mailing list