From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Gruenbacher Subject: Re: [RFC 0/28] Patches to pass vfsmount to LSM inode security hooks Date: Mon, 5 Feb 2007 16:44:01 -0800 Message-ID: <200702051644.01701.agruen@suse.de> References: <20070205182213.12164.40927.sendpatchset@ermintrude.int.wirex.com> <20070205184410.GA20672@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Tony Jones , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, chrisw@sous-sol.org, linux-security-module@vger.kernel.org, viro@zeniv.linux.org.uk To: Christoph Hellwig Return-path: In-Reply-To: <20070205184410.GA20672@infradead.org> Content-Disposition: inline Sender: linux-security-module-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Monday 05 February 2007 10:44, Christoph Hellwig wrote: > Just FYI: Al was very opposed to the idea of passing the vfsmount to > the vfs_ helpers, so you should discuss this with him. The vfs_ helper functions are the ones calling the lsm hooks in many cases. Any lsm that makes pathname based decisions will need both the dentry and vfsmount for figuring out a file's pathname. I don't see a better way of passing that information to the lsm hooks than passing it through the vfs_ helpers. Thanks, Andreas