Searched refs:ima_hash (Results 1 – 11 of 11) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H 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()
|
/openbmc/linux/security/integrity/ima/ |
H A D | ima_appraise.c | 91 u8 algo = iint->ima_hash->algo; in ima_fix_xattr() 95 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; in ima_fix_xattr() 98 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; 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() 103 (sizeof(iint->ima_hash->xattr) - 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() [all …]
|
H A D | ima_api.c | 297 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement() 303 iint->ima_hash = tmpbuf; in ima_collect_measurement() 304 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement() 394 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement() 400 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); in ima_audit_measurement() 404 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement() 405 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); in ima_audit_measurement()
|
H 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()
|
H A D | ima_main.c | 77 __setup("ima_hash=", hash_setup); 589 /* ima_hash could be allocated in case of failure. */ in __ima_inode_hash() 591 kfree(tmp_iint.ima_hash); in __ima_inode_hash() 607 if (!iint->ima_hash || !(iint->flags & IMA_COLLECTED)) { in __ima_inode_hash() 615 copied_size = min_t(size_t, iint->ima_hash->length, buf_size); in __ima_inode_hash() 616 memcpy(buf, iint->ima_hash->digest, copied_size); in __ima_inode_hash() 618 hash_algo = iint->ima_hash->algo; in __ima_inode_hash() 622 kfree(iint->ima_hash); in __ima_inode_hash() 985 iint.ima_hash = &hash.hdr; in process_buffer_measurement() 986 iint.ima_hash in process_buffer_measurement() [all...] |
H A D | ima_template_lib.c | 358 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init() 359 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init() 360 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init() 415 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init() 416 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init() 418 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init() 439 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ngv2_init() 440 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ngv2_init() 442 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ngv2_init()
|
H A D | Kconfig | 93 line 'ima_hash=' option.
|
/openbmc/openbmc/meta-security/meta-integrity/lib/oeqa/runtime/cases/ |
H A D | ima.py | 71 ima_hash = "" 79 ima_hash = tokens.split(":")[1] 80 if ima_hash == current_hash: 88 if ima_hash != current_hash:
|
/openbmc/linux/security/integrity/ |
H A D | iint.c | 95 iint->ima_hash = NULL; in iint_init_always() 112 kfree(iint->ima_hash); in iint_free()
|
H A D | integrity.h | 178 struct ima_digest_data *ima_hash; 175 struct ima_digest_data *ima_hash; global() member
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | kernel-parameters.txt | 1997 ima_hash= [IMA]
|