diff options
author | Tiger Yang <tiger.yang@oracle.com> | 2008-11-13 22:17:04 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:34:20 -0500 |
commit | 929fb014e041c6572c5e8c3686f1e32742b5b953 (patch) | |
tree | 149328875787dab63ec873cfa06364f4a23ac06d /fs/ocfs2/xattr.c | |
parent | 4e3e9d027f63488e676bf7700ec515a192e54f69 (diff) |
ocfs2: add POSIX ACL API
This patch adds POSIX ACL(access control lists) APIs in ocfs2. We convert
struct posix_acl to many ocfs2_acl_entry and regard them as an extended
attribute entry.
Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/xattr.c')
-rw-r--r-- | fs/ocfs2/xattr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index ba9b870a5dda..2e273c2cb831 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c | |||
@@ -91,6 +91,10 @@ static struct ocfs2_xattr_def_value_root def_xv = { | |||
91 | 91 | ||
92 | struct xattr_handler *ocfs2_xattr_handlers[] = { | 92 | struct xattr_handler *ocfs2_xattr_handlers[] = { |
93 | &ocfs2_xattr_user_handler, | 93 | &ocfs2_xattr_user_handler, |
94 | #ifdef CONFIG_OCFS2_FS_POSIX_ACL | ||
95 | &ocfs2_xattr_acl_access_handler, | ||
96 | &ocfs2_xattr_acl_default_handler, | ||
97 | #endif | ||
94 | &ocfs2_xattr_trusted_handler, | 98 | &ocfs2_xattr_trusted_handler, |
95 | &ocfs2_xattr_security_handler, | 99 | &ocfs2_xattr_security_handler, |
96 | NULL | 100 | NULL |
@@ -98,6 +102,12 @@ struct xattr_handler *ocfs2_xattr_handlers[] = { | |||
98 | 102 | ||
99 | static struct xattr_handler *ocfs2_xattr_handler_map[OCFS2_XATTR_MAX] = { | 103 | static struct xattr_handler *ocfs2_xattr_handler_map[OCFS2_XATTR_MAX] = { |
100 | [OCFS2_XATTR_INDEX_USER] = &ocfs2_xattr_user_handler, | 104 | [OCFS2_XATTR_INDEX_USER] = &ocfs2_xattr_user_handler, |
105 | #ifdef CONFIG_OCFS2_FS_POSIX_ACL | ||
106 | [OCFS2_XATTR_INDEX_POSIX_ACL_ACCESS] | ||
107 | = &ocfs2_xattr_acl_access_handler, | ||
108 | [OCFS2_XATTR_INDEX_POSIX_ACL_DEFAULT] | ||
109 | = &ocfs2_xattr_acl_default_handler, | ||
110 | #endif | ||
101 | [OCFS2_XATTR_INDEX_TRUSTED] = &ocfs2_xattr_trusted_handler, | 111 | [OCFS2_XATTR_INDEX_TRUSTED] = &ocfs2_xattr_trusted_handler, |
102 | [OCFS2_XATTR_INDEX_SECURITY] = &ocfs2_xattr_security_handler, | 112 | [OCFS2_XATTR_INDEX_SECURITY] = &ocfs2_xattr_security_handler, |
103 | }; | 113 | }; |