Re: [PATCH 1/9] Unionfs: security convert lsm into a static interface fix

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Erez Zadok <ezk@...>
Cc: Christoph Hellwig <hch@...>, <akpm@...>, <linux-kernel@...>, <linux-fsdevel@...>, <viro@...>, Serge E. Hallyn <serue@...>, Arjan van de Ven <arjan@...>, Chris Wright <chrisw@...>, James Morris <jmorris@...>, Stephen Smalley <sds@...>, Josef 'Jeff' Sipek <jsipek@...>
Date: Tuesday, October 23, 2007 - 5:07 am

On Mon, Oct 22, 2007 at 08:48:04PM -0400, Erez Zadok wrote:

No, it's a matter of proper layering.  We generally don't want modules
like stackabke filesystems to call directly into methods but rather use
proper highlevel VFS helpers to isolate them from details and possible
changes.  The move to out of line security_ helpers just put this on the
radard.


Sounds fine.


The fix for security_file_ioctl is probably to either not do it at all
or move it the call to security_file_ioctl into vfs_ioctl and get it by
using that helper.  I suspect most other security_ exports should be
avoided similarly.

I also suspect the whole issue of where and how-many times to call LSM
methods for stackable filesystems is a huge can of worms and it might make
sense to talk to the LSM folks about it.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL -mm] 0/9 Unionfs updates/cleanups/fixes, Erez Zadok, (Sun Oct 21, 7:51 pm)
Re: [PATCH 1/9] Unionfs: security convert lsm into a static ..., Christoph Hellwig, (Mon Oct 22, 4:22 am)
Re: [PATCH 1/9] Unionfs: security convert lsm into a static ..., Christoph Hellwig, (Tue Oct 23, 5:07 am)