login
Header Space

 
 

Re: [RFC 0/28] Patches to pass vfsmount to LSM inode security hooks

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Gruenbacher <agruen@...>
Cc: Christoph Hellwig <hch@...>, Tony Jones <tonyj@...>, <linux-kernel@...>, <linux-fsdevel@...>, <chrisw@...>, <linux-security-module@...>, <viro@...>
Date: Tuesday, February 6, 2007 - 4:51 am

On Mon, 2007-02-05 at 19:20 -0800, Andreas Gruenbacher wrote:

Who cares? There is no way to export a partial directory, and in any
case the subtree_check crap is borken beyond repair (see cross-directory
renames which lead to actual changes to the filehandle - broken, broken,
broken!!!!).


Wrong. Those create new export points since you are crossing into a
different filesystem.


Huh? Even if you don't pass in a vfsmount, you _still_ need to pass in a
super_block. Inodes are only unique per filesystem.
In fact, on an ideal NFS export, there is no ambiguity between the two
(see above comment about subtree_check) since the entire filesystem will
be exported.


...but we will have Dick Cheney track you down and shoot you if you do.
The point is that you only have to check _one_ argument (the
initialisation of the struct path) instead of having a check for every
function argument in the vfs.

Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Mon Feb 5, 10:30 pm)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Mon Feb 5, 10:13 pm)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Wed Feb 7, 4:55 am)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Wed Feb 7, 3:55 pm)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Wed Feb 7, 5:04 am)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Mon Feb 5, 8:44 pm)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Mon Feb 5, 11:20 pm)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Wed Feb 7, 5:58 am)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Trond Myklebust, (Tue Feb 6, 4:51 am)
Re: [RFC 0/28] Patches to pass vfsmount to LSM inode securit..., Andreas Gruenbacher, (Wed Feb 7, 5:25 am)
speck-geostationary