Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:(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

Proto:static int selinux_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)

Type:int

Parameter:

TypeParameterName
const struct cred *cred
struct user_namespace *ns
intcap
unsigned intopts
2178  Return Check whether a task is allowed to use a capability.