Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ma_check_blacklist - determine if the binary is blacklisted.* Add the hash of the blacklisted binary to the measurement list, based* on policy.* Returns -EPERM if the hash is blacklisted.

Proto:int ima_check_blacklist(struct integrity_iint_cache *iint, const struct modsig *modsig, int pcr)

Type:int

Parameter:

TypeParameterName
struct integrity_iint_cache *iint
const struct modsig *modsig
intpcr
319  const u8 * digest = NULL
320  digestsize = 0
321  rc = 0
323  If Not (flags & IMA_CHECK_BLACKLIST) Then Return 0
326  If flags & IMA_MODSIG_ALLOWED && modsig Then
327  ima_get_modsig_digest(modsig, & hash_algo, & digest, & digestsize)
329  rc = is_binary_blacklisted(digest, digestsize)
330  If rc == -EPERM && flags & action cache flags Then process_buffer_measurement - Measure the buffer to ima log
336  Return rc
Caller
NameDescribe
process_measurement