Home
last modified time | relevance | path

Searched refs:xattr_value (Results 1 - 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/security/integrity/ima/
H A Dima_appraise.c168 enum hash_algo ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, in ima_get_hash_algo() argument
174 if (!xattr_value || xattr_len < 2) in ima_get_hash_algo()
178 switch (xattr_value->type) { in ima_get_hash_algo()
180 sig = (typeof(sig))xattr_value; in ima_get_hash_algo()
187 ret = xattr_value->data[0]; in ima_get_hash_algo()
195 if (!memcmp(&xattr_value->data[16], &zero, 4)) in ima_get_hash_algo()
209 struct evm_ima_xattr_data **xattr_value) in ima_read_xattr()
213 ret = vfs_getxattr_alloc(dentry, XATTR_NAME_IMA, (char **)xattr_value, in ima_read_xattr()
228 struct evm_ima_xattr_data *xattr_value, int xattr_len, in xattr_verify()
233 switch (xattr_value in xattr_verify()
208 ima_read_xattr(struct dentry *dentry, struct evm_ima_xattr_data **xattr_value) ima_read_xattr() argument
227 xattr_verify(enum ima_hooks func, struct integrity_iint_cache *iint, struct evm_ima_xattr_data *xattr_value, int xattr_len, enum integrity_status *status, const char **cause) xattr_verify() argument
364 ima_appraise_measurement(enum ima_hooks func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig) ima_appraise_measurement() argument
533 ima_protect_xattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_protect_xattr() argument
562 ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_inode_setxattr() argument
[all...]
H A Dima.h67 struct evm_ima_xattr_data *xattr_value; member
265 struct evm_ima_xattr_data *xattr_value,
313 struct evm_ima_xattr_data *xattr_value,
319 enum hash_algo ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value,
322 struct evm_ima_xattr_data **xattr_value);
335 struct evm_ima_xattr_data *xattr_value, in ima_appraise_measurement()
361 ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, int xattr_len) in ima_get_hash_algo() argument
367 struct evm_ima_xattr_data **xattr_value) in ima_read_xattr()
331 ima_appraise_measurement(enum ima_hooks func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig) ima_appraise_measurement() argument
366 ima_read_xattr(struct dentry *dentry, struct evm_ima_xattr_data **xattr_value) ima_read_xattr() argument
H A Dima_main.c209 struct evm_ima_xattr_data *xattr_value = NULL; in process_measurement() local
303 xattr_len = ima_read_xattr(file_dentry(file), &xattr_value); in process_measurement()
304 if ((xattr_value && xattr_len > 2) && in process_measurement()
305 (xattr_value->type == EVM_IMA_XATTR_DIGSIG)) in process_measurement()
326 xattr_len = ima_read_xattr(file_dentry(file), &xattr_value); in process_measurement()
342 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement()
353 xattr_value, xattr_len, modsig, pcr, in process_measurement()
360 pathname, xattr_value, in process_measurement()
378 kfree(xattr_value); in process_measurement()
H A Dima_template_lib.c438 struct evm_ima_xattr_data *xattr_value = event_data->xattr_value; in ima_eventsig_init() local
440 if ((!xattr_value) || (xattr_value->type != EVM_IMA_XATTR_DIGSIG)) in ima_eventsig_init()
443 return ima_write_template_field_data(xattr_value, event_data->xattr_len, in ima_eventsig_init()
H A Dima_api.c303 struct evm_ima_xattr_data *xattr_value, in ima_store_measurement()
315 .xattr_value = xattr_value, in ima_store_measurement()
301 ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig, int pcr, struct ima_template_desc *template_desc) ima_store_measurement() argument
/kernel/linux/linux-6.6/security/integrity/ima/
H A Dima_appraise.c180 enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value, in ima_get_hash_algo() argument
186 if (!xattr_value || xattr_len < 2) in ima_get_hash_algo()
190 switch (xattr_value->type) { in ima_get_hash_algo()
192 sig = (typeof(sig))xattr_value; in ima_get_hash_algo()
198 sig = (typeof(sig))xattr_value; in ima_get_hash_algo()
205 ret = xattr_value->data[0]; in ima_get_hash_algo()
213 if (!memcmp(&xattr_value->data[16], &zero, 4)) in ima_get_hash_algo()
227 struct evm_ima_xattr_data **xattr_value, int xattr_len) in ima_read_xattr()
232 (char **)xattr_value, xattr_len, GFP_NOFS); in ima_read_xattr()
280 struct evm_ima_xattr_data *xattr_value, in in xattr_verify()
226 ima_read_xattr(struct dentry *dentry, struct evm_ima_xattr_data **xattr_value, int xattr_len) ima_read_xattr() argument
279 xattr_verify(enum ima_hooks func, struct integrity_iint_cache *iint, struct evm_ima_xattr_data *xattr_value, int xattr_len, enum integrity_status *status, const char **cause) xattr_verify() argument
480 ima_appraise_measurement(enum ima_hooks func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig) ima_appraise_measurement() argument
663 ima_protect_xattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_protect_xattr() argument
705 validate_hash_algo(struct dentry *dentry, const struct evm_ima_xattr_data *xattr_value, size_t xattr_value_len) validate_hash_algo() argument
752 ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_inode_setxattr() argument
[all...]
H A Dima.h66 struct evm_ima_xattr_data *xattr_value; member
269 struct evm_ima_xattr_data *xattr_value,
320 struct evm_ima_xattr_data *xattr_value,
327 enum hash_algo ima_get_hash_algo(const struct evm_ima_xattr_data *xattr_value,
330 struct evm_ima_xattr_data **xattr_value, int xattr_len);
343 struct evm_ima_xattr_data *xattr_value, in ima_appraise_measurement()
370 ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, int xattr_len) in ima_get_hash_algo() argument
376 struct evm_ima_xattr_data **xattr_value, in ima_read_xattr()
339 ima_appraise_measurement(enum ima_hooks func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig) ima_appraise_measurement() argument
375 ima_read_xattr(struct dentry *dentry, struct evm_ima_xattr_data **xattr_value, int xattr_len) ima_read_xattr() argument
H A Dima_template_lib.c536 struct evm_ima_xattr_data *xattr_value = event_data->xattr_value; in ima_eventsig_init() local
538 if (!xattr_value || in ima_eventsig_init()
539 (xattr_value->type != EVM_IMA_XATTR_DIGSIG && in ima_eventsig_init()
540 xattr_value->type != IMA_VERITY_DIGSIG)) in ima_eventsig_init()
543 return ima_write_template_field_data(xattr_value, event_data->xattr_len, in ima_eventsig_init()
H A Dima_main.c219 struct evm_ima_xattr_data *xattr_value = NULL; in process_measurement() local
317 &xattr_value, xattr_len); in process_measurement()
318 if ((xattr_value && xattr_len > 2) && in process_measurement()
319 (xattr_value->type == EVM_IMA_XATTR_DIGSIG)) in process_measurement()
341 &xattr_value, xattr_len); in process_measurement()
357 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement()
368 xattr_value, xattr_len, modsig, pcr, in process_measurement()
375 pathname, xattr_value, in process_measurement()
403 kfree(xattr_value); in process_measurement()
H A Dima_api.c343 struct evm_ima_xattr_data *xattr_value, in ima_store_measurement()
355 .xattr_value = xattr_value, in ima_store_measurement()
341 ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig, int pcr, struct ima_template_desc *template_desc) ima_store_measurement() argument
/kernel/linux/linux-5.10/include/linux/
H A Devm.h21 void *xattr_value,
30 const void *xattr_value,
56 void *xattr_value, in evm_verifyxattr()
82 const void *xattr_value, in evm_inode_post_setxattr()
54 evm_verifyxattr(struct dentry *dentry, const char *xattr_name, void *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verifyxattr() argument
80 evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_post_setxattr() argument
H A Dima.h148 const void *xattr_value, size_t xattr_value_len);
163 const void *xattr_value, in ima_inode_setxattr()
161 ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_inode_setxattr() argument
H A Dxattr.h63 char **xattr_value, size_t size, gfp_t flags);
/kernel/linux/linux-6.6/security/integrity/evm/
H A Devm_main.c170 char *xattr_value, in evm_verify_hmac()
215 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_verify_hmac()
236 rc = evm_calc_hash(dentry, xattr_name, xattr_value, in evm_verify_hmac()
254 xattr_value, in evm_verify_hmac()
391 * @xattr_value: requested xattr value
406 void *xattr_value, size_t xattr_value_len, in evm_verifyxattr()
417 return evm_verify_hmac(dentry, xattr_name, xattr_value, in evm_verifyxattr()
443 * @xattr_value: requested xattr value
452 const void *xattr_value, size_t xattr_value_len) in evm_xattr_change()
465 rc = !!memcmp(xattr_value, xattr_dat in evm_xattr_change()
168 evm_verify_hmac(struct dentry *dentry, const char *xattr_name, char *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verify_hmac() argument
404 evm_verifyxattr(struct dentry *dentry, const char *xattr_name, void *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verifyxattr() argument
450 evm_xattr_change(struct mnt_idmap *idmap, struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_xattr_change() argument
486 evm_protect_xattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_protect_xattr() argument
569 evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_setxattr() argument
740 evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_post_setxattr() argument
[all...]
H A Devm_crypto.c230 char *xattr_value = NULL; in evm_calc_hmac_or_hash() local
273 &xattr_value, xattr_size, GFP_NOFS); in evm_calc_hmac_or_hash()
289 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); in evm_calc_hmac_or_hash()
293 dump_security_xattr(xattr->name, xattr_value, xattr_size); in evm_calc_hmac_or_hash()
301 kfree(xattr_value); in evm_calc_hmac_or_hash()
357 const char *xattr_value, size_t xattr_value_len) in evm_update_evmxattr()
374 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_update_evmxattr()
356 evm_update_evmxattr(struct dentry *dentry, const char *xattr_name, const char *xattr_value, size_t xattr_value_len) evm_update_evmxattr() argument
/kernel/linux/linux-5.10/security/integrity/evm/
H A Devm_main.c131 char *xattr_value, in evm_verify_hmac()
176 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_verify_hmac()
195 rc = evm_calc_hash(dentry, xattr_name, xattr_value, in evm_verify_hmac()
213 xattr_value, in evm_verify_hmac()
261 * @xattr_value: requested xattr value
275 void *xattr_value, size_t xattr_value_len, in evm_verifyxattr()
286 return evm_verify_hmac(dentry, xattr_name, xattr_value, in evm_verifyxattr()
320 const void *xattr_value, size_t xattr_value_len) in evm_protect_xattr()
369 * @xattr_value: pointer to the new extended attribute value
379 const void *xattr_value, size_ in evm_inode_setxattr()
129 evm_verify_hmac(struct dentry *dentry, const char *xattr_name, char *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verify_hmac() argument
273 evm_verifyxattr(struct dentry *dentry, const char *xattr_name, void *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verifyxattr() argument
319 evm_protect_xattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_protect_xattr() argument
378 evm_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_setxattr() argument
441 evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_post_setxattr() argument
[all...]
H A Devm_crypto.c194 char *xattr_value = NULL; in evm_calc_hmac_or_hash() local
226 &xattr_value, xattr_size, GFP_NOFS); in evm_calc_hmac_or_hash()
236 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); in evm_calc_hmac_or_hash()
246 kfree(xattr_value); in evm_calc_hmac_or_hash()
301 const char *xattr_value, size_t xattr_value_len) in evm_update_evmxattr()
318 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_update_evmxattr()
300 evm_update_evmxattr(struct dentry *dentry, const char *xattr_name, const char *xattr_value, size_t xattr_value_len) evm_update_evmxattr() argument
/kernel/linux/linux-6.6/include/linux/
H A Devm.h21 void *xattr_value,
32 const void *xattr_value,
86 void *xattr_value, in evm_verifyxattr()
114 const void *xattr_value, in evm_inode_post_setxattr()
84 evm_verifyxattr(struct dentry *dentry, const char *xattr_name, void *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verifyxattr() argument
112 evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_post_setxattr() argument
H A Dima.h191 const void *xattr_value, size_t xattr_value_len);
216 const void *xattr_value, in ima_inode_setxattr()
214 ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_inode_setxattr() argument
H A Dxattr.h95 char **xattr_value, size_t size, gfp_t flags);
/kernel/linux/linux-5.10/fs/nfs/
H A Dnfs42xattr.c85 void *xattr_value; member
234 entry->xattr_value = valp; in nfs4_xattr_alloc_entry()
250 kvfree(entry->xattr_value); in nfs4_xattr_free_entry()
632 memcpy(buf, entry->xattr_value, entry->xattr_size); in nfs4_xattr_cache_get()
670 memcpy(buf, entry->xattr_value, entry->xattr_size); in nfs4_xattr_cache_list()
/kernel/linux/linux-6.6/fs/nfs/
H A Dnfs42xattr.c85 void *xattr_value; member
234 entry->xattr_value = valp; in nfs4_xattr_alloc_entry()
250 kvfree(entry->xattr_value); in nfs4_xattr_free_entry()
631 memcpy(buf, entry->xattr_value, entry->xattr_size); in nfs4_xattr_cache_get()
669 memcpy(buf, entry->xattr_value, entry->xattr_size); in nfs4_xattr_cache_list()
/kernel/linux/linux-5.10/fs/
H A Dxattr.c331 vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value, in vfs_getxattr_alloc() argument
336 char *value = *xattr_value; in vfs_getxattr_alloc()
353 value = krealloc(*xattr_value, error + 1, flags); in vfs_getxattr_alloc()
360 *xattr_value = value; in vfs_getxattr_alloc()
/kernel/linux/linux-6.6/fs/
H A Dxattr.c377 const char *name, char **xattr_value, size_t xattr_size, in vfs_getxattr_alloc()
382 char *value = *xattr_value; in vfs_getxattr_alloc()
399 value = krealloc(*xattr_value, error + 1, flags); in vfs_getxattr_alloc()
406 *xattr_value = value; in vfs_getxattr_alloc()
376 vfs_getxattr_alloc(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, char **xattr_value, size_t xattr_size, gfp_t flags) vfs_getxattr_alloc() argument
/kernel/linux/linux-6.6/fs/ceph/
H A Dmds_client.h111 char *xattr_value; member

Completed in 21 milliseconds

12