Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_queue.c Create Date:2022-07-28 19:57:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lookup up the digest value in the hash table, and return the entry

Proto:static struct ima_queue_entry *ima_lookup_digest_entry(u8 *digest_value, int pcr)

Type:struct ima_queue_entry

Parameter:

TypeParameterName
u8 *digest_value
intpcr
53  struct ima_queue_entry * qe, * ret = NULL
57  key = ima_hash_key(digest_value)
58  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
60  rc = memcmp( sha1 or md5 measurement hash , digest_value, Max TPM v1.2 PCR size )
61  If rc == 0 && pcr == pcr Then
62  ret = qe
63  Break
66  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
67  Return ret
Caller
NameDescribe
ima_add_template_entryAdd template entry to the measurement list and hash table, and* extend the pcr.* On systems which support carrying the IMA measurement list across* kexec, maintain the total memory size required for serializing the* binary_runtime_measurements.