函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\ptrace.c Create Date:2022-07-27 10:13:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ptrace_has_cap

函数原型:static bool ptrace_has_cap(const struct cred *cred, struct user_namespace *ns, unsigned int mode)

返回类型:bool

参数:

类型参数名称
const struct cred *cred
struct user_namespace *ns
unsigned intmode
272  如果mode按位与PTRACE_MODE_NOAUDITret等于security_capable(cred, ns, Allow ptrace() of any process , If capable should audit the security request )
274  否则ret等于security_capable(cred, ns, Allow ptrace() of any process , Default (no) options for the capable function )
277  返回:ret恒等于0
调用者
名称描述
__ptrace_may_accessReturns 0 on success, -errno on denial.