Date: Sat, 06 Dec 1997 21:54:01 +0000 From: Brian Somers <brian@awfulhak.org> To: Evan Champion <evanc@synapse.net> Cc: freebsd-current@freebsd.org Subject: Re: _POSIX_SAVED_IDS Message-ID: <199712062154.VAA00144@awfulhak.demon.co.uk> In-Reply-To: Your message of "Sat, 06 Dec 1997 10:11:35 EST." <Pine.BSF.3.96.971206094940.221A-100000@cello.synapse.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> I was compiling a program (Kerberos 5) on BSD/OS a couple days ago and > found that I was running in to trouble because BSDI's setreuid() doesn't > work very well (it seems that once you get to root, you can't switch to > another user), so just for kicks I decided to go compare the BSDI > setreuid() with the one from FreeBSD. > > Anyway, along the way I found that kern/kern_prot.c seems to be fully > loaded with #ifdefs for _POSIX_SAVED_IDS, but _POSIX_SAVED_IDS is not > defined by default. > > Is it just because not everything is up to handling a saved-id setuid()? AFAIK, setreuid() doesn't use saved ids - setreuid() should only be used to swap your euid and uid. Disclaimer - this is an assumption, I may be wrong. However, seteuid() works ok for me (/usr/src/usr.sbin/ppp/id.c), which implies that saved uids are functional. > Evan > -- Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org> <http://www.Awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712062154.VAA00144>