Searched refs:ima_hash (Results 1 – 7 of 7) sorted by relevance
52 u8 algo = iint->ima_hash->algo; in ima_fix_xattr()56 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; in ima_fix_xattr()59 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; in ima_fix_xattr()60 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr()63 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr()64 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()65 iint->ima_hash->length, 0); in ima_fix_xattr()235 iint->ima_hash->length) in ima_appraise_measurement()240 iint->ima_hash->digest, in ima_appraise_measurement()241 iint->ima_hash->length); in ima_appraise_measurement()[all …]
225 void *tmpbuf = krealloc(iint->ima_hash, length, in ima_collect_measurement()228 iint->ima_hash = tmpbuf; in ima_collect_measurement()229 memcpy(iint->ima_hash, &hash, length); in ima_collect_measurement()294 char hash[(iint->ima_hash->length * 2) + 1]; in ima_audit_measurement()295 const char *algo_name = hash_algo_name[iint->ima_hash->algo]; in ima_audit_measurement()302 for (i = 0; i < iint->ima_hash->length; i++) in ima_audit_measurement()303 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]); in ima_audit_measurement()
216 if (ima_template_hash_algo_allowed(event_data->iint->ima_hash->algo)) { in ima_eventdigest_init()217 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()218 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_init()254 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()255 cur_digestsize = event_data->iint->ima_hash->length; in ima_eventdigest_ng_init()257 hash_algo = event_data->iint->ima_hash->algo; in ima_eventdigest_ng_init()
63 iint->ima_hash = &hash.hdr; in ima_add_boot_aggregate()64 iint->ima_hash->algo = HASH_ALGO_SHA1; in ima_add_boot_aggregate()65 iint->ima_hash->length = SHA1_DIGEST_SIZE; in ima_add_boot_aggregate()
84 line 'ima_hash=' option.
73 kfree(iint->ima_hash); in iint_free()74 iint->ima_hash = NULL; in iint_free()
115 struct ima_digest_data *ima_hash; member