Date: Mon, 8 Dec 1997 02:42:42 +1100 From: Bruce Evans <bde@zeta.org.au> To: brian@awfulhak.org, evanc@synapse.net Cc: freebsd-current@FreeBSD.ORG Subject: Re: _POSIX_SAVED_IDS Message-ID: <199712071542.CAA04419@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Here's a problem for you: on systems where I have a saved-set seteuid(), I >would prefer to use it instead of a setreuid() swap. How do I tell if I >have a saved-set seteuid() if _POSIX_SAVED_IDS is not defined (besides >running a setuid test program -- I'd prefer something that autoconf could >figure out on its own)? Same as if _POSIX_SAVED_IDS is defined - it has nothing to do with seteuid(), since setreuid() is not in POSIX. If you can't run a setuid program, then you'll have to read all the man pages, and maybe the system sources, and maybe the kernel binary - a difficult task for autoconf :-). I think you should depend on running a setuid test program. If the program can be trusted at runtime, it can probably be trusted at build time. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712071542.CAA04419>