Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:policy_setup

Proto:static int __init policy_setup(char *str)

Type:int

Parameter:

TypeParameterName
char *str
228  When ((p = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function) != NULL) cycle
229  If p == ' ' Then Continue
231  If strcmp(p, "tcb") == 0 && Not ima_policy Then ima_policy = DEFAULT_TCB
233  Else if strcmp(p, "appraise_tcb") == 0 Then ima_use_appraise_tcb = true
235  Else if strcmp(p, "secure_boot") == 0 Then ima_use_secure_boot = true
237  Else if strcmp(p, "fail_securely") == 0 Then ima_fail_unverifiable_sigs = true
241  Return 1