1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #ifndef ACL_H
30 #define ACL_H
31
32 #include "../public/acl.h"
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 typedef struct SysACL {
39 ACLList *acl;
40 uid_t user_uid;
41 gid_t user_gid;
42 } SysACL;
43
44
45 int wsacl_affects_user(WSAce *ace, User *user);
46 int wsacl_check(WSAcl *acl, User *user,
int access_mask);
47
48
49
50
51 int fs_acl_check(SysACL *acl, User *user,
const char *path,
uint32_t access_mask);
52 int fs_acl_check_fd(SysACL *acl, User *user,
int fd,
uint32_t access_mask);
53 void fs_acl_finish();
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif
60
61