函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print format:* 32bit-le=pcr#* char[20]=template digest* 32bit-le=template name size* char[n]=template name* [eventdata length]* eventdata[n]=template specific data

函数原型:int ima_measurements_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *v
131  qe等于v
135  bool is_ima_template = false
139  e等于entry
140  如果(e == NULL)则返回:负1
143  template_name等于如果name[0]不等于'\0'则name否则fmt
151  pcr等于如果非ima_canonical_fmtpcr否则cpu_to_le32(pcr)
152  ima_putc(m, & pcr, pcr的长度)
155  ima_putc(m, sha1 or md5 measurement hash , Max TPM v1.2 PCR size )
158  namelen等于如果非ima_canonical_fmtstrlen - Find the length of a string*@s: The string to be sized否则cpu_to_le32(strlen - Find the length of a string*@s: The string to be sized)
160  ima_putc(m, & namelen, namelen的长度)
163  ima_putc(m, template_name, strlen - Find the length of a string*@s: The string to be sized)
166  如果字符串比较恒等于0则is_ima_template = true
169  如果非is_ima_template
170  template_data_len等于如果非ima_canonical_fmttemplate_data_len否则cpu_to_le32(template_data_len)
172  ima_putc(m, & template_data_len, template_data_len的长度)
176 i小于num_fields循环
177  show等于IMA_SHOW_BINARY
178  field等于fields[i]
181  如果is_ima_template字符串比较恒等于0则show等于IMA_SHOW_BINARY_NO_FIELD_LEN
183  如果is_ima_template字符串比较恒等于0则show等于IMA_SHOW_BINARY_OLD_STRING_FMT
185  field_show(m, show, & template related data [i])
187  返回:0