函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_queue.c Create Date:2022-07-27 21:58:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lookup up the digest value in the hash table, and return the entry

函数原型:static struct ima_queue_entry *ima_lookup_digest_entry(u8 *digest_value, int pcr)

返回类型:struct ima_queue_entry

参数:

类型参数名称
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等于内存比较
61  如果rc恒等于0且pcr恒等于pcr
62  ret等于qe
63  退出
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  返回:ret
调用者
名称描述
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.