From: viro@parcelfarce.linux.theplanet.co.uk Subject: Re: changing permission()/vfs_permission... to work on dentry Date: Thu, 29 May 2003 13:41:27 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030529124127.GQ14138@parcelfarce.linux.theplanet.co.uk> References: <1054154587.9356.15.camel@zaphod> <20030528214822.GF14138@parcelfarce.linux.theplanet.co.uk> <1054161272.9349.50.camel@zaphod> <20030528225308.GG14138@parcelfarce.linux.theplanet.co.uk> <1054168407.9962.45.camel@zaphod> <20030529122548.GF771@vagabond> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:47792 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S262185AbTE2M2K (ORCPT ); Thu, 29 May 2003 08:28:10 -0400 To: Jan Hudec , Shaya Potter , linux-fsdevel@vger.kernel.org Content-Disposition: inline In-Reply-To: <20030529122548.GF771@vagabond> List-Id: linux-fsdevel.vger.kernel.org On Thu, May 29, 2003 at 02:25:48PM +0200, Jan Hudec wrote: > Perhaps it's a stupid idea, but couldn't you resolve the names to inode > numbers first (though it would require checking when something happens > to those inodes)? I would expect you need to make the file (eg. shell) > unaccessible and not just one of it's dentries (eg. /bin/sh). If you have bogus links sitting around, you might very well have bogus copies too. > Perhaps this would be solved by the intent patches anyway. Since the > intent should be passed to all the methods, it should make it to > permission too. And since it will probably be boud to nameidata, it > would include everything (even the vfsmount). Filesystem methods should _not_ depend on the instance they are working on. IOW, control over namespace does not belong to fs - it doesn't get to decide where it's mounted and it certainly doesn't get to work in different ways depending on where it's mounted. All such stuff belongs to VFS and nowhere else.