函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:(This comment used to live with the selinux_task_setuid hook,* which was removed).* Since setuid only affects the current process, and since the SELinux* controls are not based on the Linux identity attributes, SELinux does not

函数原型:static int selinux_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)

返回类型:int

参数:

类型参数名称
const struct cred *cred
struct user_namespace *ns
intcap
unsigned intopts
2178  返回:Check whether a task is allowed to use a capability.