Home
last modified time | relevance | path

Searched refs:ima_hash (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/security/integrity/ima/
Dima_appraise.c64 u8 algo = iint->ima_hash->algo; in ima_fix_xattr()
68 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; in ima_fix_xattr()
71 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; in ima_fix_xattr()
72 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()
75 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr()
76 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()
77 iint->ima_hash->length, 0); in ima_fix_xattr()
228 iint->ima_hash->length) in xattr_verify()
234 iint->ima_hash->digest, in xattr_verify()
235 iint->ima_hash->length); in xattr_verify()
[all …]
Dima_api.c253 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
259 iint->ima_hash = tmpbuf; in ima_collect_measurement()
260 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()
342 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement()
348 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); in ima_audit_measurement()
352 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement()
353 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); in ima_audit_measurement()
Dima_init.c59 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate()
60 iint->ima_hash->algo = HASH_ALGO_SHA1; in ima_add_boot_aggregate()
61 iint->ima_hash->length = SHA1_DIGEST_SIZE; in ima_add_boot_aggregate()
Dima_template_lib.c285 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init()
286 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
287 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
323 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
324 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
326 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
Dima_main.c659 iint.ima_hash = &hash.hdr; in process_buffer_measurement()
660 iint.ima_hash->algo = ima_hash_algo; in process_buffer_measurement()
661 iint.ima_hash->length = hash_digest_size[ima_hash_algo]; in process_buffer_measurement()
663 ret = ima_calc_buffer_hash(buf, size, iint.ima_hash); in process_buffer_measurement()
DKconfig98 line 'ima_hash=' option.
/Linux-v5.4/security/integrity/
Diint.c73 kfree(iint->ima_hash); in iint_free()
74 iint->ima_hash = NULL; in iint_free()
Dintegrity.h133 struct ima_digest_data *ima_hash; member
/Linux-v5.4/Documentation/admin-guide/
Dkernel-parameters.txt1604 ima_hash= [IMA]