Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ima_show_template_data_ascii

Proto:static void ima_show_template_data_ascii(struct seq_file *m, enum ima_show_type show, enum data_formats datafmt, struct ima_field_data *field_data)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
enum ima_show_typeshow
enum data_formatsdatafmt
struct ima_field_data *field_data
70  buf_ptr = data
71  buflen = len
74  Case datafmt == DATA_FMT_DIGEST_WITH_ALGO
75  buf_ptr = strnchr - Find a character in a length limited string*@s: The string to be searched*@count: The number of characters to be searched*@c: The character to search for* Note that the %NUL-terminator is considered part of the string, and can* be searched for.
76  If buf_ptr != data Then seq_printf(m, "%s", data)
80  buf_ptr += 2
81  buflen -= buf_ptr - data
83  Case datafmt == DATA_FMT_DIGEST
84  Case datafmt == DATA_FMT_HEX
85  If Not buflen Then Break
87  ima_print_digest(m, buf_ptr, buflen)
88  Break
89  Case datafmt == DATA_FMT_STRING
90  seq_printf(m, "%s", buf_ptr)
91  Break
92  Default
93  Break
Caller
NameDescribe
ima_show_template_field_data