Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-28 19:53:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:param_set_mode

Proto:static int param_set_mode(const char *val, const struct kernel_param *kp)

Type:int

Parameter:

TypeParameterName
const char *val
const struct kernel_param *kp
1561  If Not Boot time disable flag Then Return -EINVAL
1563  If Not val Then Return -EINVAL
1565  If Flag indicating whether initialization completed && Not policy_admin_capable(NULL) Then Return -EPERM
1568  i = match_string - matches given string in an array*@array: array of strings*@n: number of strings in the array or -1 for NULL terminated arrays*@string: string to match with* Return:* index of a @string in the @array if matches, or %-EINVAL otherwise.
1570  If i < 0 Then Return -EINVAL
1573  AppArmor global enforcement switch - complain, enforce, kill = i
1574  Return 0