Date: Fri, 10 Jul 1998 08:54:34 -0500 (CDT) From: Guy Helmer <ghelmer@scl.ameslab.gov> To: Bruce Evans <bde@zeta.org.au> Cc: imp@village.org, roberto@keltia.freenix.fr, Guy Helmer <ghelmer@scl.ameslab.gov>, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/msgs msgs.c Message-ID: <Pine.SGI.3.96.980710083740.2987F-100000@demios.scl.ameslab.gov> In-Reply-To: <199807092153.HAA02835@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Jul 1998, Bruce Evans wrote:
> >: We haven't been using POSIX saved uids for more than two years now IIRC...
> >:
> >: kern.saved_ids: 0
> >
> >Yes. That's one of the hazards of importing fixes wholesale from
> >OpenBSD. They do have saved ids, and they have needed to fix things
> >in a posixly correct way.
>
> A POSIXly correct way would handle all possible settings of
> _POSIX_SAVED_IDS. Configuration for the case where _POSIX_SAVED_IDS
> is set is difficult because the configuring entity must read the
> system documentation to determine what "appropriate privilege" means
> and generate code to handle any mismatches between the system's
> idea of appropriate privilege and what the application expects :-).
So, as I understand it now, the change
seteuid(uid = getuid());
setuid(uid);
should be reverted to the original
setuid(uid = getuid());
It seemed like an innocuous change. Thanks for catching this and educating
me.
Guy Helmer
Guy Helmer, Graduate Student, Iowa State University Dept. of Computer Science
Research Assistant, Ames Laboratory --- ghelmer@scl.ameslab.gov
http://www.cs.iastate.edu/~ghelmer
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.3.96.980710083740.2987F-100000>
