函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function writes the digest of the file which is expected to match the* digest contained in the file's appended signature.

函数原型:int ima_eventdigest_modsig_init(struct ima_event_data *event_data, struct ima_field_data *field_data)

返回类型:int

参数:

类型参数名称
struct ima_event_data *event_data
struct ima_field_data *field_data
343  如果非modsig则返回:0
346  如果violation
348  hash_algo等于HASH_ALGO_SHA1
349  cur_digest = NULL
350  cur_digestsize等于0
351  否则
354  rc等于ima_get_modsig_digest(modsig, & hash_algo, & cur_digest, & cur_digestsize)
356  如果rc则返回:rc
358  否则如果hash_algo恒等于HASH_ALGO__LASTcur_digestsize恒等于0则返回:负EINVAL
363  返回:ima_eventdigest_init_common(cur_digest, cur_digestsize, hash_algo, field_data)