]>
Commit | Line | Data |
---|---|---|
024b7d6a | 1 | /* SPDX-License-Identifier: LGPL-2.1 */ |
85ff872d AK |
2 | /* |
3 | * Copyright IBM Corporation, 2010 | |
4 | * Author Aneesh Kumar K.V <[email protected]> | |
85ff872d AK |
5 | */ |
6 | #ifndef FS_9P_ACL_H | |
7 | #define FS_9P_ACL_H | |
8 | ||
9 | #ifdef CONFIG_9P_FS_POSIX_ACL | |
6e195b0f | 10 | int v9fs_get_acl(struct inode *inode, struct p9_fid *fid); |
6cd4d4e8 | 11 | struct posix_acl *v9fs_iop_get_inode_acl(struct inode *inode, int type, |
6e195b0f | 12 | bool rcu); |
77435322 | 13 | struct posix_acl *v9fs_iop_get_acl(struct mnt_idmap *idmap, |
6cd4d4e8 | 14 | struct dentry *dentry, int type); |
13e83a49 | 15 | int v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, |
079da629 | 16 | struct posix_acl *acl, int type); |
6e195b0f DM |
17 | int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid); |
18 | int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid, | |
19 | struct posix_acl *dacl, struct posix_acl *acl); | |
20 | int v9fs_acl_mode(struct inode *dir, umode_t *modep, | |
21 | struct posix_acl **dpacl, struct posix_acl **pacl); | |
22 | void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl); | |
85ff872d | 23 | #else |
6cd4d4e8 | 24 | #define v9fs_iop_get_inode_acl NULL |
4e34e719 | 25 | #define v9fs_iop_get_acl NULL |
079da629 | 26 | #define v9fs_iop_set_acl NULL |
85ff872d AK |
27 | static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid) |
28 | { | |
29 | return 0; | |
30 | } | |
be308f07 | 31 | static inline int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid) |
6e8dc555 AK |
32 | { |
33 | return 0; | |
34 | } | |
3592ac44 AV |
35 | static inline int v9fs_set_create_acl(struct inode *inode, |
36 | struct p9_fid *fid, | |
5fa6300a AV |
37 | struct posix_acl *dacl, |
38 | struct posix_acl *acl) | |
ad77dbce AK |
39 | { |
40 | return 0; | |
41 | } | |
5fa6300a AV |
42 | static inline void v9fs_put_acl(struct posix_acl *dacl, |
43 | struct posix_acl *acl) | |
44 | { | |
45 | } | |
d3fb6120 | 46 | static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep, |
ad77dbce AK |
47 | struct posix_acl **dpacl, |
48 | struct posix_acl **pacl) | |
49 | { | |
50 | return 0; | |
51 | } | |
52 | ||
85ff872d AK |
53 | #endif |
54 | #endif /* FS_9P_XATTR_H */ |