函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:29:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:has_cap_mac_admin

函数原型:static bool has_cap_mac_admin(bool audit)

返回类型:bool

参数:

类型参数名称
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等于如果auditDefault (no) options for the capable function 否则If capable should audit the security request
3128  如果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则返回:false
3130  如果Check whether a task is allowed to use a capability. 则返回:false
3132  返回:true
调用者
名称描述
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