From owner-freebsd-audit Thu May 10 5:13: 8 2001 Delivered-To: freebsd-audit@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 4C7BD37B422 for ; Thu, 10 May 2001 05:13:03 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4ACCgY44568; Thu, 10 May 2001 15:12:42 +0300 (EEST) (envelope-from ru) Date: Thu, 10 May 2001 15:12:41 +0300 From: Ruslan Ermilov To: Bruce Evans Cc: Kris Kennaway , audit@FreeBSD.ORG Subject: Re: ping6 fixes Message-ID: <20010510151241.A44027@sunbay.com> References: <20010510124858.D19855@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bde@zeta.org.au on Thu, May 10, 2001 at 08:52:50PM +1000 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, May 10, 2001 at 08:52:50PM +1000, Bruce Evans wrote: > On Thu, 10 May 2001, Ruslan Ermilov wrote: > > > On Wed, May 09, 2001 at 08:37:40PM -0700, Kris Kennaway wrote: > > > On Wed, May 09, 2001 at 04:20:44AM +1000, Bruce Evans wrote: > > > > > > > I think I now understand the purpose of seteuid() before seteuid(). > > > > > > Me too. Thanks, all. > > > > > /me still doesn't. > > > > As I said, this would only be meaningful if: > > > > 1) we follow POSIX.1-200x > > I'm stll not sure about this (haven't seen POSIX.any-200x...). > Don't you know that the drafts are available on www.opengroup.com/austin-l ? > > - and - > > > > 2) the process doesn't have "appropriate privilege" initially, > > i.e., it's not setuid root (not the case here). > > It saves you from having to know much about the current ids. (Not a > good reason, since you really should understand the current ids in > set*id programs. And you really should check that set*id() succeeded...) > But the comment in the code assumes that the current IDs are that of root. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message