From owner-svn-src-head@FreeBSD.ORG Fri Aug 20 18:41:09 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EE771065675; Fri, 20 Aug 2010 18:41:09 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 3CAD78FC18; Fri, 20 Aug 2010 18:41:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7KIbdkB012302; Fri, 20 Aug 2010 12:37:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 20 Aug 2010 12:37:42 -0600 (MDT) Message-Id: <20100820.123742.600640546137300360.imp@bsdimp.com> To: des@des.no From: "M. Warner Losh" In-Reply-To: <861v9ty7bg.fsf@ds4.des.no> References: <8662z6r77w.fsf@ds4.des.no> <861v9ty7bg.fsf@ds4.des.no> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: attilio@freebsd.org, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r211393 - head/lib/libutil X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 18:41:09 -0000 In message: <861v9ty7bg.fsf@ds4.des.no> Dag-Erling Sm=F8rgrav writes: : Attilio Rao writes: : > Dag-Erling Sm=F8rgrav writes: : > > Perhaps the test in setusercontext() should be changed to use : > > geteuid() instead of getuid(). : > Yes, I think that it probabilly makes more sense (geteuid() testing= in : > setusercontext()). : = : What if the user's ~/.login_conf sets a custom PATH, and the applicat= ion : switches back to root privs and fork()-exec()s some other program? And we're back to the reason for why issetugid() :) Warner