Searched refs:ima_hash (Results 1 – 10 of 10) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | ima.c | 28 u64 ima_hash = 0; in ima_test_common() local 36 ret = bpf_ima_inode_hash(file->f_inode, &ima_hash, in ima_test_common() 37 sizeof(ima_hash)); in ima_test_common() 39 ret = bpf_ima_file_hash(file, &ima_hash, in ima_test_common() 40 sizeof(ima_hash)); in ima_test_common() 41 if (ret < 0 || ima_hash == 0) in ima_test_common() 48 *sample = ima_hash; in ima_test_common()
|
/linux-6.3-rc2/security/integrity/ima/ |
A D | ima_appraise.c | 91 u8 algo = iint->ima_hash->algo; in ima_fix_xattr() 99 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr() 102 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr() 104 iint->ima_hash->length, 0); in ima_fix_xattr() 308 iint->ima_hash->length) in xattr_verify() 314 iint->ima_hash->digest, in xattr_verify() 315 iint->ima_hash->length); in xattr_verify() 344 iint->ima_hash->digest, in xattr_verify() 345 iint->ima_hash->length); in xattr_verify() 355 iint->ima_hash->digest, in xattr_verify() [all …]
|
A D | ima_api.c | 300 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement() 306 iint->ima_hash = tmpbuf; in ima_collect_measurement() 307 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement() 389 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement() 395 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); in ima_audit_measurement() 399 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement() 400 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); in ima_audit_measurement()
|
A D | ima_init.c | 56 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate() 57 iint->ima_hash->algo = ima_hash_algo; in ima_add_boot_aggregate() 58 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
|
A D | ima_main.c | 570 kfree(tmp_iint.ima_hash); in __ima_inode_hash() 586 if (!iint->ima_hash || !(iint->flags & IMA_COLLECTED)) { in __ima_inode_hash() 595 memcpy(buf, iint->ima_hash->digest, copied_size); in __ima_inode_hash() 597 hash_algo = iint->ima_hash->algo; in __ima_inode_hash() 601 kfree(iint->ima_hash); in __ima_inode_hash() 964 iint.ima_hash = &hash.hdr; in process_buffer_measurement() 965 iint.ima_hash->algo = ima_hash_algo; in process_buffer_measurement() 966 iint.ima_hash->length = hash_digest_size[ima_hash_algo]; in process_buffer_measurement() 968 ret = ima_calc_buffer_hash(buf, size, iint.ima_hash); in process_buffer_measurement() 978 iint.ima_hash); in process_buffer_measurement() [all …]
|
A D | ima_template_lib.c | 352 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init() 353 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init() 354 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init() 409 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init() 410 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init() 412 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init() 433 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ngv2_init() 434 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ngv2_init() 436 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ngv2_init()
|
A D | Kconfig | 95 line 'ima_hash=' option.
|
/linux-6.3-rc2/security/integrity/ |
A D | iint.c | 73 kfree(iint->ima_hash); in iint_free() 74 iint->ima_hash = NULL; in iint_free()
|
A D | integrity.h | 173 struct ima_digest_data *ima_hash; member
|
/linux-6.3-rc2/Documentation/admin-guide/ |
A D | kernel-parameters.txt | 1922 ima_hash= [IMA]
|
Completed in 24 milliseconds