Closed 0xEAB closed 2 years ago
ok yeah, this was something on my todo list anyway i just never got around to it. i'll look over the code later.
code looks ok, i expect to merge tomorrow
theoretically, we could get rid of Nullable
again, if we treat zero as a special value like before
(assuming nobody would probably want to setuid/setguid to root anyway)
yeah you'd never use 0, it would be pretty useless.
well i guess some other wheel user could switch to root but meh
whoops i got busy with other things and forgot about this. but it all looks good
thanks
Moves the previously thread-local uid/guid variables into
RequestServer
. Checks whethersetgid
/setuid
succeeds, throws otherwise. Being uid0
(aka root) is no longer a precondition – see also: CAP_SETUID.Background: I was particularly unhappy that there was no API to set uid/gid apart from
configureFromCommandLine(string[])