|
12 | 12 | #include <linux/integrity.h> |
13 | 13 | #include <linux/xattr.h> |
14 | 14 |
|
15 | | -struct integrity_iint_cache; |
16 | | - |
17 | 15 | #ifdef CONFIG_EVM |
18 | 16 | extern int evm_set_key(void *key, size_t keylen); |
19 | 17 | extern enum integrity_status evm_verifyxattr(struct dentry *dentry, |
20 | 18 | const char *xattr_name, |
21 | 19 | void *xattr_value, |
22 | | - size_t xattr_value_len, |
23 | | - struct integrity_iint_cache *iint); |
24 | | -extern int evm_inode_setattr(struct mnt_idmap *idmap, |
25 | | - struct dentry *dentry, struct iattr *attr); |
26 | | -extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid); |
27 | | -extern int evm_inode_setxattr(struct mnt_idmap *idmap, |
28 | | - struct dentry *dentry, const char *name, |
29 | | - const void *value, size_t size); |
30 | | -extern void evm_inode_post_setxattr(struct dentry *dentry, |
31 | | - const char *xattr_name, |
32 | | - const void *xattr_value, |
33 | | - size_t xattr_value_len); |
34 | | -extern int evm_inode_copy_up_xattr(const char *name); |
35 | | -extern int evm_inode_removexattr(struct mnt_idmap *idmap, |
36 | | - struct dentry *dentry, const char *xattr_name); |
37 | | -extern void evm_inode_post_removexattr(struct dentry *dentry, |
38 | | - const char *xattr_name); |
39 | | -static inline void evm_inode_post_remove_acl(struct mnt_idmap *idmap, |
40 | | - struct dentry *dentry, |
41 | | - const char *acl_name) |
42 | | -{ |
43 | | - evm_inode_post_removexattr(dentry, acl_name); |
44 | | -} |
45 | | -extern int evm_inode_set_acl(struct mnt_idmap *idmap, |
46 | | - struct dentry *dentry, const char *acl_name, |
47 | | - struct posix_acl *kacl); |
48 | | -static inline int evm_inode_remove_acl(struct mnt_idmap *idmap, |
49 | | - struct dentry *dentry, |
50 | | - const char *acl_name) |
51 | | -{ |
52 | | - return evm_inode_set_acl(idmap, dentry, acl_name, NULL); |
53 | | -} |
54 | | -static inline void evm_inode_post_set_acl(struct dentry *dentry, |
55 | | - const char *acl_name, |
56 | | - struct posix_acl *kacl) |
57 | | -{ |
58 | | - return evm_inode_post_setxattr(dentry, acl_name, NULL, 0); |
59 | | -} |
60 | | - |
| 20 | + size_t xattr_value_len); |
61 | 21 | int evm_inode_init_security(struct inode *inode, struct inode *dir, |
62 | 22 | const struct qstr *qstr, struct xattr *xattrs, |
63 | 23 | int *xattr_count); |
@@ -85,85 +45,12 @@ static inline int evm_set_key(void *key, size_t keylen) |
85 | 45 | static inline enum integrity_status evm_verifyxattr(struct dentry *dentry, |
86 | 46 | const char *xattr_name, |
87 | 47 | void *xattr_value, |
88 | | - size_t xattr_value_len, |
89 | | - struct integrity_iint_cache *iint) |
| 48 | + size_t xattr_value_len) |
90 | 49 | { |
91 | 50 | return INTEGRITY_UNKNOWN; |
92 | 51 | } |
93 | 52 | #endif |
94 | 53 |
|
95 | | -static inline int evm_inode_setattr(struct mnt_idmap *idmap, |
96 | | - struct dentry *dentry, struct iattr *attr) |
97 | | -{ |
98 | | - return 0; |
99 | | -} |
100 | | - |
101 | | -static inline void evm_inode_post_setattr(struct dentry *dentry, int ia_valid) |
102 | | -{ |
103 | | - return; |
104 | | -} |
105 | | - |
106 | | -static inline int evm_inode_setxattr(struct mnt_idmap *idmap, |
107 | | - struct dentry *dentry, const char *name, |
108 | | - const void *value, size_t size) |
109 | | -{ |
110 | | - return 0; |
111 | | -} |
112 | | - |
113 | | -static inline void evm_inode_post_setxattr(struct dentry *dentry, |
114 | | - const char *xattr_name, |
115 | | - const void *xattr_value, |
116 | | - size_t xattr_value_len) |
117 | | -{ |
118 | | - return; |
119 | | -} |
120 | | - |
121 | | -static inline int evm_inode_copy_up_xattr(const char *name) |
122 | | -{ |
123 | | - return 0; |
124 | | -} |
125 | | - |
126 | | -static inline int evm_inode_removexattr(struct mnt_idmap *idmap, |
127 | | - struct dentry *dentry, |
128 | | - const char *xattr_name) |
129 | | -{ |
130 | | - return 0; |
131 | | -} |
132 | | - |
133 | | -static inline void evm_inode_post_removexattr(struct dentry *dentry, |
134 | | - const char *xattr_name) |
135 | | -{ |
136 | | - return; |
137 | | -} |
138 | | - |
139 | | -static inline void evm_inode_post_remove_acl(struct mnt_idmap *idmap, |
140 | | - struct dentry *dentry, |
141 | | - const char *acl_name) |
142 | | -{ |
143 | | - return; |
144 | | -} |
145 | | - |
146 | | -static inline int evm_inode_set_acl(struct mnt_idmap *idmap, |
147 | | - struct dentry *dentry, const char *acl_name, |
148 | | - struct posix_acl *kacl) |
149 | | -{ |
150 | | - return 0; |
151 | | -} |
152 | | - |
153 | | -static inline int evm_inode_remove_acl(struct mnt_idmap *idmap, |
154 | | - struct dentry *dentry, |
155 | | - const char *acl_name) |
156 | | -{ |
157 | | - return 0; |
158 | | -} |
159 | | - |
160 | | -static inline void evm_inode_post_set_acl(struct dentry *dentry, |
161 | | - const char *acl_name, |
162 | | - struct posix_acl *kacl) |
163 | | -{ |
164 | | - return; |
165 | | -} |
166 | | - |
167 | 54 | static inline int evm_inode_init_security(struct inode *inode, struct inode *dir, |
168 | 55 | const struct qstr *qstr, |
169 | 56 | struct xattr *xattrs, |
|
0 commit comments