Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-28 11:23:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Process kernel command-line parameter at boot time.* audit={0|off} or audit={1|on}.

Proto:static int __init audit_enable(char *str)

Type:int

Parameter:

TypeParameterName
char *str
1622  If Not strcasecmp(str, "off") || Not strcmp(str, "0") Then Default state when kernel boots without any parameters. = AUDIT_OFF
1624  Else if Not strcasecmp(str, "on") || Not strcmp(str, "1") Then Default state when kernel boots without any parameters. = AUDIT_ON
1626  Else
1627  pr_err("audit: invalid 'audit' parameter value (%s)\n", str)
1628  Default state when kernel boots without any parameters. = AUDIT_ON
1631  If Default state when kernel boots without any parameters. == AUDIT_OFF Then audit_initialized = Do not create per-task audit_context.* No syscall-specific audit records can* be generated.
1633  If audit_set_enabled(Default state when kernel boots without any parameters. ) Then pr_err("audit: error setting audit state (%d)\n", Default state when kernel boots without any parameters. )
1637  pr_info("%s\n", Default state when kernel boots without any parameters. ? "enabled (after initialization)" : "disabled (until reboot)")
1640  Return 1