login
Header Space

 
 

Re: [PATCH 03/11] VFS: Add security label support to *notify

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Josef 'Jeff' Sipek <jeffpc@...>
Cc: <hch@...>, <viro@...>, <trond.myklebust@...>, <bfields@...>, <linux-kernel@...>, <linux-fsdevel@...>
Date: Thursday, February 28, 2008 - 4:39 pm

On Thu, 2008-02-28 at 15:10 -0500, Josef 'Jeff' Sipek wrote:

Already raised by James and fixed but thanks for catching it again.

Fixed.


Fixed (added another _ to the beginning.)

What we do and what you propose aren't logically equivalent. There is a
permission check inside vfs_setxattr before the mutex lock. However
looking at through the xattr_permission function and its call chain it
doesn't seem like we would create a deadlock by locking the inode before
it is called; so it is possible to do what you propose. Since setting of
xattrs (at least from our perspective) is a less common operation I
don't think putting locking around the entire call would make that large
of a difference.

Dave

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RFC Labeled NFS Initial Code Review, David P. Quigley, (Wed Feb 27, 4:39 pm)
[PATCH 09/11] NFS: Client implementation of Labeled-NFS, David P. Quigley, (Wed Feb 27, 4:39 pm)
[PATCH 03/11] VFS: Add security label support to *notify, David P. Quigley, (Wed Feb 27, 4:39 pm)
Re: [PATCH 03/11] VFS: Add security label support to *notify, Josef 'Jeff' Sipek, (Thu Feb 28, 4:10 pm)
Re: [PATCH 03/11] VFS: Add security label support to *notify, Dave Quigley, (Thu Feb 28, 4:39 pm)
Re: [PATCH 03/11] VFS: Add security label support to *notify, Josef 'Jeff' Sipek, (Thu Feb 28, 5:15 pm)
Re: [PATCH 03/11] VFS: Add security label support to *notify, Josef 'Jeff' Sipek, (Thu Feb 28, 5:39 pm)
[PATCH 11/11] NFSD: Server implementation of MAC Labeling, David P. Quigley, (Wed Feb 27, 4:39 pm)
[PATCH 06/11] SELinux: Add new labeling type native labels, David P. Quigley, (Wed Feb 27, 4:39 pm)
speck-geostationary