summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-12-20 14:16:40 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2014-01-26 05:58:17 +0100
commit2aeccbe957d0d2b9fbb2a236e53a955097e2a9ce (patch)
treeb07768d451a0d4b4be65096f9462660e856e6798 /include
parentfs: add a set_acl inode operation (diff)
downloadlinux-2aeccbe957d0d2b9fbb2a236e53a955097e2a9ce.tar.xz
linux-2aeccbe957d0d2b9fbb2a236e53a955097e2a9ce.zip
fs: add generic xattr_acl handlers
With the ->set_acl inode operation we can implement the Posix ACL xattr handlers in generic code instead of duplicating them all over the tree. 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 'include')
-rw-r--r--include/linux/posix_acl_xattr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/posix_acl_xattr.h b/include/linux/posix_acl_xattr.h
index ad93ad0f1db0..6f14ee295822 100644
--- a/include/linux/posix_acl_xattr.h
+++ b/include/linux/posix_acl_xattr.h
@@ -69,4 +69,7 @@ struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns,
int posix_acl_to_xattr(struct user_namespace *user_ns,
const struct posix_acl *acl, void *buffer, size_t size);
+extern const struct xattr_handler posix_acl_access_xattr_handler;
+extern const struct xattr_handler posix_acl_default_xattr_handler;
+
#endif /* _POSIX_ACL_XATTR_H */