From owner-cvs-all Fri Jul 10 16:26:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA11588 for cvs-all-outgoing; Fri, 10 Jul 1998 16:26:31 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA11488 for ; Fri, 10 Jul 1998 16:26:08 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id JAA27469; Sat, 11 Jul 1998 09:26:00 +1000 Date: Sat, 11 Jul 1998 09:26:00 +1000 From: Bruce Evans Message-Id: <199807102326.JAA27469@godzilla.zeta.org.au> To: bde@zeta.org.au, ghelmer@scl.ameslab.gov Subject: Re: cvs commit: src/usr.bin/msgs msgs.c Cc: cvs-committers@FreeBSD.ORG, imp@village.org, roberto@keltia.freenix.fr Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >From ghelmer@scl.ameslab.gov Fri Jul 10 23:54:57 1998 >Return-Path: >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 ; 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 >To: Bruce Evans >cc: imp@village.org, roberto@keltia.freenix.fr, > Guy Helmer , 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: >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