summaryrefslogtreecommitdiffstats
path: root/src/client/posix_acl.h
diff options
context:
space:
mode:
authorGreg Farnum <gfarnum@redhat.com>2016-08-04 00:27:34 +0200
committerGreg Farnum <gfarnum@redhat.com>2016-09-22 01:33:56 +0200
commitead687b924826de1cd18740de928e943b1d74e0f (patch)
treead1fd9693e71d4ea46fa4b2d4173425b1d9b8488 /src/client/posix_acl.h
parentclient: push UserGroups into _posix_acl_permission(), instead of passing it (diff)
downloadceph-ead687b924826de1cd18740de928e943b1d74e0f.tar.xz
ceph-ead687b924826de1cd18740de928e943b1d74e0f.zip
client: stop using UserGroups for posix ACL checks
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Diffstat (limited to 'src/client/posix_acl.h')
-rw-r--r--src/client/posix_acl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/posix_acl.h b/src/client/posix_acl.h
index d9c5cc854bd..4afcc3fe2e1 100644
--- a/src/client/posix_acl.h
+++ b/src/client/posix_acl.h
@@ -24,12 +24,12 @@ typedef struct {
acl_ea_entry a_entries[0];
} acl_ea_header;
-class UserGroups;
+class UserPerm;
int posix_acl_check(const void *xattr, size_t size);
int posix_acl_equiv_mode(const void *xattr, size_t size, mode_t *mode_p);
int posix_acl_inherit_mode(bufferptr& acl, mode_t *mode_p);
int posix_acl_access_chmod(bufferptr& acl, mode_t mode);
int posix_acl_permits(const bufferptr& acl, uid_t i_uid, gid_t i_gid,
- uid_t uid, UserGroups& groups, unsigned want);
+ const UserPerm& groups, unsigned want);
#endif