Date: Sat, 11 Jul 1998 09:26:00 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, ghelmer@scl.ameslab.gov Cc: cvs-committers@FreeBSD.ORG, imp@village.org, roberto@keltia.freenix.fr Subject: Re: cvs commit: src/usr.bin/msgs msgs.c Message-ID: <199807102326.JAA27469@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>From ghelmer@scl.ameslab.gov Fri Jul 10 23:54:57 1998 >Return-Path: <ghelmer@scl.ameslab.gov> >Received: from mailhub.scl.ameslab.gov (mailhub.scl.ameslab.gov [147.155.137.127]) > by godzilla.zeta.org.au (8.8.7/8.8.7) with ESMTP id XAA01981 > for <bde@zeta.org.au>; Fri, 10 Jul 1998 23:54:54 +1000 >Received: from demios.ether.scl.ameslab.gov ([147.155.137.54] helo=demios.scl.ameslab.gov) > by mailhub.scl.ameslab.gov with smtp (Exim 1.90 #1) > id 0yudbA-0000b9-00; Fri, 10 Jul 1998 08:52:28 -0500 >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 >In-Reply-To: <199807092153.HAA02835@godzilla.zeta.org.au> >Message-ID: <Pine.SGI.3.96.980710083740.2987F-100000@demios.scl.ameslab.gov> >MIME-Version: 1.0 >Content-Type: TEXT/PLAIN; charset=US-ASCII >Status: RO > >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?199807102326.JAA27469>