From owner-freebsd-current@FreeBSD.ORG Mon May 10 09:40:09 2004 Return-Path: Delivered-To: freebsd-current@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 348CB16A4CF for ; Mon, 10 May 2004 09:40:09 -0700 (PDT) Received: from hexagon.stack.nl (hexagon.stack.nl [131.155.140.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F80843D49 for ; Mon, 10 May 2004 09:40:08 -0700 (PDT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by hexagon.stack.nl (Postfix) with ESMTP id 667FE2D476; Mon, 10 May 2004 18:40:07 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id D19AE6667; Mon, 10 May 2004 18:40:08 +0200 (CEST) Date: Mon, 10 May 2004 18:40:08 +0200 From: Marc Olzheim To: Tim Robbins Message-ID: <20040510164008.GA5960@stack.nl> References: <20040507092235.GA61837@stack.nl> <20040507100119.GA15782@cat.robbins.dropbear.id.au> <20040507235556.GB37035@empiric.dek.spc.org> <20040508010228.GA18935@cat.robbins.dropbear.id.au> <20040508012357.GA37547@empiric.dek.spc.org> <20040508030258.GA19512@cat.robbins.dropbear.id.au> <20040508044207.GB38736@empiric.dek.spc.org> <20040508070040.GA20138@cat.robbins.dropbear.id.au> <20040508135954.GA469@stack.nl> <20040508151412.GA21857@cat.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040508151412.GA21857@cat.robbins.dropbear.id.au> X-Operating-System: FreeBSD hammer.stack.nl 5.2-CURRENT FreeBSD 5.2-CURRENT X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.6i cc: Marc Olzheim cc: Bruce M Simpson cc: Poul-Henning Kamp cc: freebsd-current@www.freebsd.org Subject: Re: Unified getcwd() implementation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2004 16:40:09 -0000 On Sun, May 09, 2004 at 01:14:12AM +1000, Tim Robbins wrote: > > - getcwd() having elevated permission to actually be able to find the > > real cwd. > > >From what I can see, it still uses the caller's credentials in calls > to VOP_GETATTR(), VOP_LOOKUP() and VOP_READDIR(). Erhm yes, you're right. That will be in the next patch. Perhaps yet another sysctl to allow for per machine setting of allowing getcwd() to resolv unreadable paths ? That would be necessary for the linuxulator anyhow... Marc