Searched refs:xattr_len (Results 1 – 7 of 7) sorted by relevance
/security/integrity/evm/ |
D | evm_posix_acl.c | 14 int xattr_len = strlen(xattr); in posix_xattr_acl() local 16 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len) in posix_xattr_acl() 17 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0)) in posix_xattr_acl() 19 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len) in posix_xattr_acl() 20 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0)) in posix_xattr_acl()
|
D | evm_main.c | 184 int rc, xattr_len, evm_immutable = 0; in evm_verify_hmac() local 209 xattr_len = rc; in evm_verify_hmac() 214 if (xattr_len != sizeof(struct evm_xattr)) { in evm_verify_hmac() 234 if (xattr_len <= sizeof(struct signature_v2_hdr)) { in evm_verify_hmac() 246 (const char *)xattr_data, xattr_len, in evm_verify_hmac()
|
/security/integrity/ima/ |
D | ima_appraise.c | 176 int xattr_len) in ima_get_hash_algo() argument 181 if (!xattr_value || xattr_len < 2) in ima_get_hash_algo() 188 if (sig->version != 2 || xattr_len <= sizeof(*sig) in ima_get_hash_algo() 201 if (xattr_len == 21) { in ima_get_hash_algo() 207 } else if (xattr_len == 17) in ima_get_hash_algo() 236 struct evm_ima_xattr_data *xattr_value, int xattr_len, in xattr_verify() argument 257 if (xattr_len - sizeof(xattr_value->type) - hash_start >= in xattr_verify() 279 xattr_len, in xattr_verify() 290 xattr_len, in xattr_verify() 380 int xattr_len, const struct modsig *modsig) in ima_appraise_measurement() argument [all …]
|
D | ima.h | 67 int xattr_len; member 269 int xattr_len, const struct modsig *modsig, int pcr, 320 int xattr_len, const struct modsig *modsig); 327 int xattr_len); 343 int xattr_len, in ima_appraise_measurement() argument 369 ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, int xattr_len) in ima_get_hash_algo() argument
|
D | ima_main.c | 216 int xattr_len = 0; in process_measurement() local 310 xattr_len = ima_read_xattr(file_dentry(file), &xattr_value); in process_measurement() 311 if ((xattr_value && xattr_len > 2) && in process_measurement() 333 xattr_len = ima_read_xattr(file_dentry(file), &xattr_value); in process_measurement() 349 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement() 360 xattr_value, xattr_len, modsig, pcr, in process_measurement() 368 xattr_len, modsig); in process_measurement()
|
D | ima_api.c | 308 int xattr_len, const struct modsig *modsig, int pcr, in ima_store_measurement() argument 320 .xattr_len = xattr_len, in ima_store_measurement()
|
D | ima_template_lib.c | 484 return ima_write_template_field_data(xattr_value, event_data->xattr_len, in ima_eventsig_init()
|