From: viro@parcelfarce.linux.theplanet.co.uk Subject: Re: changing permission()/vfs_permission... to work on dentry Date: Thu, 29 May 2003 09:27:50 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030529082750.GM14138@parcelfarce.linux.theplanet.co.uk> References: <20030529005549.GJ14138@parcelfarce.linux.theplanet.co.uk> <1054182023.10017.53.camel@zaphod> <20030528213809.A6734@figure1.int.wirex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Shaya Potter , linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:7844 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S261998AbTE2IOd (ORCPT ); Thu, 29 May 2003 04:14:33 -0400 To: Chris Wright Content-Disposition: inline In-Reply-To: <20030528213809.A6734@figure1.int.wirex.com> List-Id: linux-fsdevel.vger.kernel.org On Wed, May 28, 2003 at 09:38:09PM -0700, Chris Wright wrote: > true. per-mountpoint read-only would allow you to create a namespace > to do this. however, this gets back to changing permission() to taking > vfsmount (or likely just nameidata) so that the IS_RDONLY() check could > see mountpoint specific flags as well as the super_block flags. as i'm > sure you've found, this changes a lot of code ;-) It would, if you had to pass vfsmount into the thing. The Right Way(tm) would be to move that check out to the places where we still have vfsmount instead. And that leads to interesting things around remount semantics - see another posting for details.