函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:safesetid_security_capable

函数原型:static int safesetid_security_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
69  如果cap不等于Allows forged pids on socket credentials passing. 则返回:0
77  如果opts按位与If capable is being called by a setid function 的值不等于0则返回:0
84  如果Compute a decision for a transition from @src to @dst under the active* policy.恒等于 source ID is unaffected by policy 则返回:0
91  打印警告信息("Operation requires CAP_SETUID, which is not available to UID %u for operations besides approved set*uid transitions\n", __kuid_val(进程uid))
93  返回:负EPERM