Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:has_cap_mac_admin

Proto:static bool has_cap_mac_admin(bool audit)

Type:bool

Parameter:

TypeParameterName
boolaudit
3125  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
3126  opts = If audit Then Default (no) options for the capable function Else If capable should audit the security request
3128  If ap_capable - Determine whether a task has a particular effective capability*@cred: The credentials to use*@ns: The user namespace in which we need the capability*@cap: The capability to check for*@opts: Bitmask of options defined in include/linux/security Then Return false
3130  If Check whether a task is allowed to use a capability. Then Return false
3132  Return true
Caller
NameDescribe
selinux_inode_setxattr
selinux_inode_getsecurityCopy the inode security context value to the user.* Permission check is handled by selinux_inode_getxattr hook.
selinux_setprocattr