From owner-freebsd-hackers Wed Mar 27 2: 0:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from vbook.express.ru (asplinux.ru [195.133.213.194]) by hub.freebsd.org (Postfix) with ESMTP id 3D41637B400 for ; Wed, 27 Mar 2002 02:00:24 -0800 (PST) Received: from localhost ([127.0.0.1]) by vbook.express.ru with esmtp (Exim 3.35 #1) id 16qAE9-0000OA-00; Wed, 27 Mar 2002 13:00:22 +0300 Subject: Re: unionfs and getcwd problem. From: "Vladimir B. " Grebenschikov To: BOUWSMA Beery Cc: hackers@freebsd.org In-Reply-To: <200203251528.g2PFSaY00856@beerswilling.netscum.dyndns.dk> References: <200202251435.XAA91094@shidahara1.planet.sci.kobe-u.ac.jp> <1015415443.3157.2.camel@vbook.express.ru> <200203102147.g2ALlDw00249@beerswilling.netscum.dyndns.dk> <1016041015.748.56.camel@vbook.express.ru> <200203251528.g2PFSaY00856@beerswilling.netscum.dyndns.dk> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Mar 2002 13:00:21 +0300 Message-Id: <1017223221.600.3.camel@vbook.express.ru> Mime-Version: 1.0 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 2002-03-25 at 18:28, BOUWSMA Beery wrote: > > > > The only obvious `problem' is when a non-r00t user attempts to > > > access the union-mounted fs when the shadow directories have not > > > yet been created, and `permission denied' is returned for all > > > directories that exist below, but not in the unionfs fs. E.g.: > > > Yes, it is because of feature of unionfs to create shadow directories > > with credentionals of proceses doing "rise" operation. > > > > And if process have no permissions to write into parent directory > > operation fail. > > I have thought about what is best to do in a case like this. > At first, I was thinking that if a directory like this does not > presently exist in the upper (unionfs) layer, then for the case > of a read-only operation like `ls', simply fall through to display > what is present in the lower layer. > > This, if it is possible (I have no idea; I'm no hacker), would > avoid the ``hey, why can't I do a simple `ls'?!?'' type of > question. May be you will be interested in -o union flag to any standart mount It works a bit different from special union FS. > thanks, > barry bouwsma -- TSB "Russian Express", Moscow Vladimir B. Grebenschikov, vova@express.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message