diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-12-20 08:16:49 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-01-25 23:58:21 -0500 |
commit | 47f70d08facf288a9faad6e6c36ac2e670be8195 (patch) | |
tree | 6c615c020bb9b8faa7c59e05580150449010dfde /fs/reiserfs/xattr.c | |
parent | 702e5bc68ad2c02f1b12b53ef7093074af9d2441 (diff) |
reiserfs: use generic posix ACL infrastructure
Also don't bother to set up a .get_acl method for symlinks as we do not
support access control (ACLs or even mode bits) for symlinks in Linux.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r-- | fs/reiserfs/xattr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index 8a9e2dcfe004..5cdfbd638b5c 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c | |||
@@ -50,6 +50,7 @@ | |||
50 | #include <linux/stat.h> | 50 | #include <linux/stat.h> |
51 | #include <linux/quotaops.h> | 51 | #include <linux/quotaops.h> |
52 | #include <linux/security.h> | 52 | #include <linux/security.h> |
53 | #include <linux/posix_acl_xattr.h> | ||
53 | 54 | ||
54 | #define PRIVROOT_NAME ".reiserfs_priv" | 55 | #define PRIVROOT_NAME ".reiserfs_priv" |
55 | #define XAROOT_NAME "xattrs" | 56 | #define XAROOT_NAME "xattrs" |
@@ -904,8 +905,8 @@ static const struct xattr_handler *reiserfs_xattr_handlers[] = { | |||
904 | &reiserfs_xattr_security_handler, | 905 | &reiserfs_xattr_security_handler, |
905 | #endif | 906 | #endif |
906 | #ifdef CONFIG_REISERFS_FS_POSIX_ACL | 907 | #ifdef CONFIG_REISERFS_FS_POSIX_ACL |
907 | &reiserfs_posix_acl_access_handler, | 908 | &posix_acl_access_xattr_handler, |
908 | &reiserfs_posix_acl_default_handler, | 909 | &posix_acl_default_xattr_handler, |
909 | #endif | 910 | #endif |
910 | NULL | 911 | NULL |
911 | }; | 912 | }; |