Searched refs:ima_hash (Results 1 – 9 of 9) sorted by relevance
| /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()
|
| /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() 272 iint->ima_hash->length) 278 iint->ima_hash->digest, in xattr_verify() 279 iint->ima_hash in xattr_verify() [all...] |
| H A D | ima_api.c | 307 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement() 313 iint->ima_hash = tmpbuf; in ima_collect_measurement() 314 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement() 404 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement() 410 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); in ima_audit_measurement() 414 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement() 415 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); in ima_audit_measurement()
|
| H A D | ima_template_lib.c | 360 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init() 361 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init() 362 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init() 417 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init() 418 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init() 420 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init() 441 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ngv2_init() 442 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ngv2_init() 444 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ngv2_init()
|
| H A D | ima_main.c | 98 __setup("ima_hash=", hash_setup); 712 /* ima_hash could be allocated in case of failure. */ in __ima_inode_hash() 714 kfree(tmp_iint.ima_hash); in __ima_inode_hash() 730 if (!iint->ima_hash || !(iint->flags & IMA_COLLECTED)) { 738 copied_size = min_t(size_t, iint->ima_hash->length, buf_size); 739 memcpy(buf, iint->ima_hash->digest, copied_size); 741 hash_algo = iint->ima_hash->algo; 745 kfree(iint->ima_hash); in ima_file_hash() 1117 iint.ima_hash = hash_hdr; in process_buffer_measurement() 1118 iint.ima_hash in process_buffer_measurement() [all...] |
| H A D | ima_iint.c | 61 iint->ima_hash = NULL; in ima_iint_init_always() 77 kfree(iint->ima_hash); in ima_iint_free()
|
| H A D | ima.h | 226 struct ima_digest_data *ima_hash; in ima_inode_set_iint() 199 struct ima_digest_data *ima_hash; global() member
|
| H A D | Kconfig | 94 line 'ima_hash=' option.
|
| /linux/Documentation/admin-guide/ |
| H A D | kernel-parameters.txt | 2364 ima_hash= [IMA]
|