Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ima_template_fmt_setup

Proto:static int __init ima_template_fmt_setup(char *str)

Type:int

Parameter:

TypeParameterName
char *str
118  num_templates = ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(builtin_templates)
120  If ima_template Then Return 1
123  If template_desc_init_fields(str, NULL, NULL) < 0 Then
124  pr_err("format string '%s' not valid, using template %s\n", str, CONFIG_IMA_DEFAULT_TEMPLATE)
126  Return 1
129  fmt = str
130  ima_template = builtin_templates + num_templates - 1
132  Return 1