From owner-freebsd-current@FreeBSD.ORG Fri Oct 1 12:20:48 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 2D72616A4CE for ; Fri, 1 Oct 2004 12:20:48 +0000 (GMT) Received: from axe-inc.co.jp (axegw.axe-inc.co.jp [61.199.217.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 459A943D3F for ; Fri, 1 Oct 2004 12:20:47 +0000 (GMT) (envelope-from takawata@axe-inc.co.jp) Received: from localhost (localhost [127.0.0.1]) by axe-inc.co.jp (8.9.3+3.2W/3.7W) with SMTP id VAA05579; Fri, 1 Oct 2004 21:20:04 +0900 (JST) Message-Id: <200410011220.VAA05579@axe-inc.co.jp> X-Authentication-Warning: axegw.axe-inc.co.jp: localhost [127.0.0.1] didn't use HELO protocol To: Denis Shaposhnikov From: takawata@jp.freebsd.org In-reply-to: Your message of "Fri, 01 Oct 2004 15:31:14 +0400." <87y8iqptdp.fsf@neva.vlink.ru> Date: Fri, 01 Oct 2004 21:20:04 +0900 Sender: takawata@axe-inc.co.jp cc: freebsd-current@freebsd.org Subject: Re: jail, unionfs, pwd 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, 01 Oct 2004 12:20:48 -0000 In message <87y8iqptdp.fsf@neva.vlink.ru>, Denis Shaposhnikov wrote: >Hi! > >Something wrong with unionfs, look at this: > >[dsh@neva dsh]$ mkdir /mnt/.ro >[dsh@neva dsh]$ cp -R /bin /lib /libexec /mnt/ >[dsh@neva dsh]$ mount_unionfs -r /usr /mnt/.ro >[dsh@neva dsh]$ jail /mnt x.x 127.0.0.1 /bin/tcsh ># pwd >/ ># cd /.ro ># pwd >/.ro ># cd /.ro/bin ># pwd >pwd: .: No such file or directory > >Why pwd said this? What is wrong? If the filesystem /mnt is using is same as /usr, it is something like the problem which I encounted once. http://docs.FreeBSD.org/cgi/mid.cgi?200202251435.XAA91094