Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
A Dima.c24 u64 ima_hash = 0; in BPF_PROG() local
31 ret = bpf_ima_inode_hash(bprm->file->f_inode, &ima_hash, in BPF_PROG()
32 sizeof(ima_hash)); in BPF_PROG()
33 if (ret < 0 || ima_hash == 0) in BPF_PROG()
40 *sample = ima_hash; in BPF_PROG()
/linux/security/integrity/ima/
A Dima_appraise.c89 u8 algo = iint->ima_hash->algo; in ima_fix_xattr()
97 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()
100 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr()
102 iint->ima_hash->length, 0); in ima_fix_xattr()
258 iint->ima_hash->length) in xattr_verify()
264 iint->ima_hash->digest, in xattr_verify()
265 iint->ima_hash->length); in xattr_verify()
280 iint->ima_hash->digest, in xattr_verify()
281 iint->ima_hash->length); in xattr_verify()
291 iint->ima_hash->digest, in xattr_verify()
[all …]
A Dima_api.c260 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
266 iint->ima_hash = tmpbuf; in ima_collect_measurement()
267 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()
349 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement()
355 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); in ima_audit_measurement()
359 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement()
360 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); in ima_audit_measurement()
A Dima_init.c59 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate()
60 iint->ima_hash->algo = ima_hash_algo; in ima_add_boot_aggregate()
61 iint->ima_hash->length = hash_digest_size[ima_hash_algo]; in ima_add_boot_aggregate()
A Dima_main.c540 if (!iint->ima_hash) { in __ima_inode_hash()
548 copied_size = min_t(size_t, iint->ima_hash->length, buf_size); in __ima_inode_hash()
549 memcpy(buf, iint->ima_hash->digest, copied_size); in __ima_inode_hash()
551 hash_algo = iint->ima_hash->algo; in __ima_inode_hash()
919 iint.ima_hash = &hash.hdr; in process_buffer_measurement()
920 iint.ima_hash->algo = ima_hash_algo; in process_buffer_measurement()
921 iint.ima_hash->length = hash_digest_size[ima_hash_algo]; in process_buffer_measurement()
923 ret = ima_calc_buffer_hash(buf, size, iint.ima_hash); in process_buffer_measurement()
933 iint.ima_hash); in process_buffer_measurement()
944 memcpy(digest, iint.ima_hash->digest, digest_hash_len); in process_buffer_measurement()
A Dima_template_lib.c324 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init()
325 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
326 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()
380 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
381 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()
383 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
A DKconfig97 line 'ima_hash=' option.
/linux/security/integrity/
A Diint.c73 kfree(iint->ima_hash); in iint_free()
74 iint->ima_hash = NULL; in iint_free()
A Dintegrity.h140 struct ima_digest_data *ima_hash; member
/linux/Documentation/admin-guide/
A Dkernel-parameters.txt1829 ima_hash= [IMA]

Completed in 21 milliseconds