Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:safesetid_security_capable

Proto:static int safesetid_security_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
69  If cap != Allows forged pids on socket credentials passing. Then Return 0
77  If (opts & If capable is being called by a setid function ) != 0 Then Return 0
84  If Compute a decision for a transition from @src to @dst under the active* policy. == source ID is unaffected by policy Then Return 0
91  pr_warn("Operation requires CAP_SETUID, which is not available to UID %u for operations besides approved set*uid transitions\n", __kuid_val( real UID of the task ))
93  Return -EPERM