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_setup

Proto:static int __init ima_template_setup(char *str)

Type:int

Parameter:

TypeParameterName
char *str
83  template_len = strlen - Find the length of a string*@s: The string to be sized
85  If ima_template Then Return 1
88  ima_init_template_list()
94  template_desc = lookup_template_desc(str)
95  If Not template_desc Then
96  pr_err("template %s not found, using %s\n", str, CONFIG_IMA_DEFAULT_TEMPLATE)
98  Return 1
105  If template_len == 3 && strcmp(str, IMA_TEMPLATE_IMA_NAME) == 0 && ima_hash_algo != HASH_ALGO_SHA1 && ima_hash_algo != HASH_ALGO_MD5 Then
107  pr_err("template does not support hash alg\n")
108  Return 1
111  ima_template = template_desc
112  Return 1