Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759267AbYCUQYa (ORCPT ); Fri, 21 Mar 2008 12:24:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755347AbYCUQYT (ORCPT ); Fri, 21 Mar 2008 12:24:19 -0400 Received: from fxip-0047f.externet.hu ([88.209.222.127]:35488 "EHLO pomaz-ex.szeredi.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755325AbYCUQYS (ORCPT ); Fri, 21 Mar 2008 12:24:18 -0400 To: viro@ZenIV.linux.org.uk CC: miklos@szeredi.hu, haveblue@us.ibm.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, neilb@suse.de, akpm@linux-foundation.org, hch@infradead.org In-reply-to: <20080321155451.GU10722@ZenIV.linux.org.uk> (message from Al Viro on Fri, 21 Mar 2008 15:54:51 +0000) Subject: Re: r-o bind in nfsd References: <20080321155451.GU10722@ZenIV.linux.org.uk> Message-Id: From: Miklos Szeredi Date: Fri, 21 Mar 2008 17:24:11 +0100 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1147 Lines: 29 > > I know there are a few cases, where filesystems call vfs_foo() > > internally, where the vfsmount isn't available, but I think the proper > > solution is just to fix those places, and not recurse back into the > > VFS (which is AFAICS in all those cases totally unnecessary anyway). > > This would make everybody happy, no? > > Apparmor can go play with itself. The proper fix is to lift the LSM nonsense > into callers and leave vfs_...() alone; Maybe. I know precious little about this security thing, so I won't argue about it's merits or faults. But: a) I have a hunch that the security guys wouldn't like to see the order between permission() and security_foo() changed. b) I fail to see how moving functionality to callers would improve things > vfsmounts should *not* be passed there at all, with the exception of > vfs_follow_link() which gets the full nameidata. Why? Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/