Searched refs:ima_hash (Results 1 - 8 of 8) sorted by relevance
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | ima.c | 28 u64 ima_hash = 0; local 36 ret = bpf_ima_inode_hash(file->f_inode, &ima_hash, 37 sizeof(ima_hash)); 39 ret = bpf_ima_file_hash(file, &ima_hash, 40 sizeof(ima_hash)); 41 if (ret < 0 || ima_hash == 0) 48 *sample = ima_hash;
|
/linux-master/security/integrity/ima/ |
H A D | ima_init.c | 56 iint->ima_hash = &hash.hdr; 57 iint->ima_hash->algo = ima_hash_algo; 58 iint->ima_hash->length = hash_digest_size[ima_hash_algo];
|
H A D | ima_appraise.c | 90 u8 algo = iint->ima_hash->algo; 94 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; 97 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; 98 iint->ima_hash->xattr.ng.algo = algo; 101 &iint->ima_hash->xattr.data[offset], 102 (sizeof(iint->ima_hash->xattr) - offset) + 103 iint->ima_hash->length, 0); 306 iint->ima_hash->length) 312 iint->ima_hash->digest, 313 iint->ima_hash [all...] |
H A D | ima_iint.c | 61 iint->ima_hash = NULL; 77 kfree(iint->ima_hash);
|
H A D | ima_api.c | 298 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); 304 iint->ima_hash = tmpbuf; 305 memcpy(iint->ima_hash, &hash, length); 391 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; 397 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL); 401 for (i = 0; i < iint->ima_hash->length; i++) 402 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]);
|
H A D | ima_template_lib.c | 352 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { 353 cur_digest = event_data->iint->ima_hash->digest; 354 cur_digestsize = event_data->iint->ima_hash->length; 409 cur_digest = event_data->iint->ima_hash->digest; 410 cur_digestsize = event_data->iint->ima_hash->length; 412 hash_algo = event_data->iint->ima_hash->algo; 433 cur_digest = event_data->iint->ima_hash->digest; 434 cur_digestsize = event_data->iint->ima_hash->length; 436 hash_algo = event_data->iint->ima_hash->algo;
|
H A D | ima_main.c | 77 __setup("ima_hash=", hash_setup); 586 /* ima_hash could be allocated in case of failure. */ 588 kfree(tmp_iint.ima_hash); 604 if (!iint->ima_hash || !(iint->flags & IMA_COLLECTED)) { 612 copied_size = min_t(size_t, iint->ima_hash->length, buf_size); 613 memcpy(buf, iint->ima_hash->digest, copied_size); 615 hash_algo = iint->ima_hash->algo; 619 kfree(iint->ima_hash); 982 iint.ima_hash = &hash.hdr; 983 iint.ima_hash [all...] |
H A D | ima.h | 189 struct ima_digest_data *ima_hash; member in struct:ima_iint_cache
|
Completed in 116 milliseconds