]>
git.proxmox.com Git - ceph.git/blob - ceph/src/client/posix_acl.h
4 #define ACL_EA_VERSION 0x0002
6 #define ACL_USER_OBJ 0x01
8 #define ACL_GROUP_OBJ 0x04
11 #define ACL_OTHER 0x20
13 #define ACL_EA_ACCESS "system.posix_acl_access"
14 #define ACL_EA_DEFAULT "system.posix_acl_default"
24 acl_ea_entry a_entries
[0];
29 int posix_acl_check(const void *xattr
, size_t size
);
30 int posix_acl_equiv_mode(const void *xattr
, size_t size
, mode_t
*mode_p
);
31 int posix_acl_inherit_mode(bufferptr
& acl
, mode_t
*mode_p
);
32 int posix_acl_access_chmod(bufferptr
& acl
, mode_t mode
);
33 int posix_acl_permits(const bufferptr
& acl
, uid_t i_uid
, gid_t i_gid
,
34 const UserPerm
& groups
, unsigned want
);