]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/9p: xattr: add trusted and security namespaces
authorJim Garlick <garlick@llnl.gov>
Wed, 29 May 2013 19:09:39 +0000 (12:09 -0700)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 30 May 2013 17:04:34 +0000 (12:04 -0500)
commit7a0d932b50945c21e7185451182087499e8116e5
tree8bb294f34cee1bb66c71b4d7c0068130a695ae70
parentc41e0b1f8bbbffdbd51aca8bc3b0b44fd366c010
fs/9p: xattr: add trusted and security namespaces

Allow requests for security.* and trusted.* xattr name spaces
to pass through to server.

The new files are 99% cut and paste from fs/9p/xattr_user.c with the
namespaces changed.  It has the intended effect in superficial testing.
I do not know much detail about how these namespaces are used, but passing
them through to the server, which can decide whether to handle them or not,
seems reasonable.

I want to support a use case where an ext4 file system is mounted via 9P,
then re-exported via samba to windows clients in a cluster.  Windows wants
to store xattrs such as security.NTACL.  This works when ext4 directly
backs samba, but not when 9P is inserted.  This use case is documented here:
   http://code.google.com/p/diod/issues/detail?id=95

Signed-off-by: Jim Garlick <garlick@llnl.gov>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/Kconfig
fs/9p/Makefile
fs/9p/xattr.c
fs/9p/xattr.h
fs/9p/xattr_security.c [new file with mode: 0644]
fs/9p/xattr_trusted.c [new file with mode: 0644]