From owner-svn-src-head@FreeBSD.ORG Fri Aug 20 09:14:29 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 8DD7610656A7; Fri, 20 Aug 2010 09:14:29 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 4A5DB8FC1A; Fri, 20 Aug 2010 09:14:29 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 601B41FFC33; Fri, 20 Aug 2010 09:14:28 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id C062B8456E; Fri, 20 Aug 2010 11:14:27 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Attilio Rao References: <201008161132.o7GBWKhx097183@svn.freebsd.org> <86mxsm4wff.fsf@ds4.des.no> <86bp924w3w.fsf@ds4.des.no> <8662z6r77w.fsf@ds4.des.no> Date: Fri, 20 Aug 2010 11:14:27 +0200 In-Reply-To: (Attilio Rao's message of "Thu, 19 Aug 2010 16:51:37 +0200") Message-ID: <861v9ty7bg.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: 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 09:14:29 -0000 Attilio Rao writes: > Dag-Erling Sm=C3=B8rgrav 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 application switches back to root privs and fork()-exec()s some other program? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no