From owner-freebsd-current@FreeBSD.ORG Fri Oct 22 17:37:41 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0414516A4CE for ; Fri, 22 Oct 2004 17:37:41 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E65B243D4C for ; Fri, 22 Oct 2004 17:37:40 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id D58DB72DF4; Fri, 22 Oct 2004 10:37:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id D114F72DCB; Fri, 22 Oct 2004 10:37:40 -0700 (PDT) Date: Fri, 22 Oct 2004 10:37:40 -0700 (PDT) From: Doug White To: Andriy Gapon In-Reply-To: <4178EE95.6080708@icyb.net.ua> Message-ID: <20041022103516.I48519@carver.gumbysoft.com> References: <4178DBA0.8050605@icyb.net.ua> <20041022131342.W95775@gwdu60.gwdg.de> <4178EE95.6080708@icyb.net.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org cc: Konrad Heuer Subject: Re: linux emulation: "/ " resolves to real root dir; why ? 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: Fri, 22 Oct 2004 17:37:41 -0000 Removing -queestions crosspost. On Fri, 22 Oct 2004, Andriy Gapon wrote: > on 22.10.2004 14:18 Konrad Heuer said the following: > > On Fri, 22 Oct 2004, Andriy Gapon wrote: > > > > Linux binaries often need to access files outside the emulation directory > > tree, just think of data files in the user's homes when running > > applications like acroread, linux-mozilla, staroffice etc. So you > > absolutely need to break out. > > > > we are taking about different "break outs". Removing the check will > *not* affect accessing any other filesystem node but "/". Only things like > cd / > ls / > or > "cd .." from /compat/linux/foo > will be affected. You missed the point. This would mean you would not be able to access stuff like /home, which would make it awful hard to access user home directories, unless you create symlink copies in the /compat/linux tree. As long as you create the top-level dir in /compat/linux first, mkdir -p will Do The Right Thing after that. The port seems to install fine on my systems; it doesn't spam any existing files or directories, so I'm not sure why you think linux_base-7 has a problem. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org