Home
last modified time | relevance | path

Searched refs:xattr_len (Results 1 – 7 of 7) sorted by relevance

/security/integrity/evm/
Devm_posix_acl.c18 int xattr_len = strlen(xattr); in posix_xattr_acl() local
20 if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len) in posix_xattr_acl()
21 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0)) in posix_xattr_acl()
23 if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len) in posix_xattr_acl()
24 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0)) in posix_xattr_acl()
Devm_main.c121 int rc, xattr_len; in evm_verify_hmac() local
146 xattr_len = rc; in evm_verify_hmac()
151 if (xattr_len != sizeof(struct evm_ima_xattr_data)) { in evm_verify_hmac()
172 (const char *)xattr_data, xattr_len, in evm_verify_hmac()
/security/integrity/ima/
Dima_appraise.c142 int xattr_len) in ima_get_hash_algo() argument
147 if (!xattr_value || xattr_len < 2) in ima_get_hash_algo()
154 if (sig->version != 2 || xattr_len <= sizeof(*sig)) in ima_get_hash_algo()
165 if (xattr_len == 21) { in ima_get_hash_algo()
171 } else if (xattr_len == 17) in ima_get_hash_algo()
204 int xattr_len, int opened) in ima_appraise_measurement() argument
211 int rc = xattr_len, hash_start = 0; in ima_appraise_measurement()
255 if (xattr_len - sizeof(xattr_value->type) - hash_start >= in ima_appraise_measurement()
Dima.h67 int xattr_len; member
203 int xattr_len, int pcr);
241 int xattr_len, int opened);
247 int xattr_len);
257 int xattr_len, int opened) in ima_appraise_measurement() argument
281 ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, int xattr_len) in ima_get_hash_algo() argument
Dima_main.c183 int xattr_len = 0; in process_measurement() local
260 xattr_len = ima_read_xattr(file_dentry(file), &xattr_value); in process_measurement()
262 hash_algo = ima_get_hash_algo(xattr_value, xattr_len); in process_measurement()
273 xattr_value, xattr_len, pcr); in process_measurement()
277 xattr_value, xattr_len, opened); in process_measurement()
Dima_template_lib.c383 int xattr_len = event_data->xattr_len; in ima_eventsig_init() local
389 rc = ima_write_template_field_data(xattr_value, xattr_len, fmt, in ima_eventsig_init()
Dima_api.c276 int xattr_len, int pcr) in ima_store_measurement() argument
284 xattr_len, NULL}; in ima_store_measurement()