Home
last modified time | relevance | path

Searched refs:xattr_value (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/security/integrity/ima/
Dima_appraise.c150 enum hash_algo ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, in ima_get_hash_algo() argument
156 if (!xattr_value || xattr_len < 2) in ima_get_hash_algo()
160 switch (xattr_value->type) { in ima_get_hash_algo()
162 sig = (typeof(sig))xattr_value; in ima_get_hash_algo()
169 ret = xattr_value->data[0]; in ima_get_hash_algo()
177 if (!memcmp(&xattr_value->data[16], &zero, 4)) in ima_get_hash_algo()
191 struct evm_ima_xattr_data **xattr_value) in ima_read_xattr() argument
195 ret = vfs_getxattr_alloc(dentry, XATTR_NAME_IMA, (char **)xattr_value, in ima_read_xattr()
210 struct evm_ima_xattr_data *xattr_value, int xattr_len, in xattr_verify() argument
215 switch (xattr_value->type) { in xattr_verify()
[all …]
Dima.h61 struct evm_ima_xattr_data *xattr_value; member
217 struct evm_ima_xattr_data *xattr_value,
259 struct evm_ima_xattr_data *xattr_value,
265 enum hash_algo ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value,
268 struct evm_ima_xattr_data **xattr_value);
275 struct evm_ima_xattr_data *xattr_value, in ima_appraise_measurement() argument
301 ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, int xattr_len) in ima_get_hash_algo() argument
307 struct evm_ima_xattr_data **xattr_value) in ima_read_xattr() argument
Dima_main.c204 struct evm_ima_xattr_data *xattr_value = NULL; in process_measurement() local
285 xattr_len = ima_read_xattr(file_dentry(file), &xattr_value); in process_measurement()
286 if ((xattr_value && xattr_len > 2) && in process_measurement()
287 (xattr_value->type == EVM_IMA_XATTR_DIGSIG)) in process_measurement()
308 xattr_len = ima_read_xattr(file_dentry(file), &xattr_value); in process_measurement()
324 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement()
335 xattr_value, xattr_len, modsig, pcr, in process_measurement()
340 xattr_value, xattr_len, modsig); in process_measurement()
356 kfree(xattr_value); in process_measurement()
Dima_template_lib.c422 struct evm_ima_xattr_data *xattr_value = event_data->xattr_value; in ima_eventsig_init() local
424 if ((!xattr_value) || (xattr_value->type != EVM_IMA_XATTR_DIGSIG)) in ima_eventsig_init()
427 return ima_write_template_field_data(xattr_value, event_data->xattr_len, in ima_eventsig_init()
Dima_api.c295 struct evm_ima_xattr_data *xattr_value, in ima_store_measurement() argument
307 .xattr_value = xattr_value, in ima_store_measurement()
/Linux-v5.4/security/integrity/evm/
Devm_main.c130 char *xattr_value, in evm_verify_hmac() argument
175 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_verify_hmac()
188 rc = evm_calc_hash(dentry, xattr_name, xattr_value, in evm_verify_hmac()
206 xattr_value, in evm_verify_hmac()
268 void *xattr_value, size_t xattr_value_len, in evm_verifyxattr() argument
279 return evm_verify_hmac(dentry, xattr_name, xattr_value, in evm_verifyxattr()
313 const void *xattr_value, size_t xattr_value_len) in evm_protect_xattr() argument
372 const void *xattr_value, size_t xattr_value_len) in evm_inode_setxattr() argument
374 const struct evm_ima_xattr_data *xattr_data = xattr_value; in evm_inode_setxattr()
389 return evm_protect_xattr(dentry, xattr_name, xattr_value, in evm_inode_setxattr()
[all …]
Devm_crypto.c196 char *xattr_value = NULL; in evm_calc_hmac_or_hash() local
228 &xattr_value, xattr_size, GFP_NOFS); in evm_calc_hmac_or_hash()
238 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); in evm_calc_hmac_or_hash()
248 kfree(xattr_value); in evm_calc_hmac_or_hash()
303 const char *xattr_value, size_t xattr_value_len) in evm_update_evmxattr() argument
320 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_update_evmxattr()
/Linux-v5.4/include/linux/
Devm.h21 void *xattr_value,
30 const void *xattr_value,
56 void *xattr_value, in evm_verifyxattr() argument
82 const void *xattr_value, in evm_inode_post_setxattr() argument
Dima.h107 const void *xattr_value, size_t xattr_value_len);
122 const void *xattr_value, in ima_inode_setxattr() argument
Dxattr.h60 char **xattr_value, size_t size, gfp_t flags);
/Linux-v5.4/fs/
Dxattr.c267 vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value, in vfs_getxattr_alloc() argument
272 char *value = *xattr_value; in vfs_getxattr_alloc()
289 value = krealloc(*xattr_value, error + 1, flags); in vfs_getxattr_alloc()
296 *xattr_value = value; in vfs_getxattr_alloc()