函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ima_audit_measurement

函数原型:void ima_audit_measurement(struct integrity_iint_cache *iint, const unsigned char *filename)

返回类型:void

参数:

类型参数名称
struct integrity_iint_cache *iint
const unsigned char *filename
342  algo_name等于hash_algo_name[algo]
345  如果flags按位与IMA_AUDITED则返回
348  hash等于分配内存并置零
349  如果非hash则返回
352 i小于length循环hex_byte_pack(hash + (i * 2), digest[i])
354  hash[i * 2]等于'\0'
356  ab等于申请审计缓冲区
358  如果非ab则转到:out
361  写入审计信息
362  audit_log_untrustedstring - log a string that may contain random characters*@ab: audit_buffer*@string: string to be logged* Same as audit_log_n_untrustedstring(), except that strlen is used to* determine string length.
363  写入审计信息
365  audit_log_task_info(ab)
366  发送审计信息,并释放缓冲区
368  flags或等于IMA_AUDITED
369  out :
370  释放内存
371  返回