Invoke setgid before setuid
When called with the -a user parameter, saned calls first
setuid and then setgid, but the second call fails because
uid is no longer root.
So call setgid first, and check the return code from the
two calls. If you can't set your gid or uid, that's a fatal
error.
Nick Andrew nick at nick-andrew.net wrote:
Hi,
When called with the -a user parameter, saned calls first
setuid and then setgid, but the second call fails because
uid is no longer root.
Applied.
JB.
--
Julien BLACHE http://www.jblache.org
jb at