Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ptrace_has_cap

Proto:static bool ptrace_has_cap(const struct cred *cred, struct user_namespace *ns, unsigned int mode)

Type:bool

Parameter:

TypeParameterName
const struct cred *cred
struct user_namespace *ns
unsigned intmode
272  If mode & PTRACE_MODE_NOAUDIT Then ret = security_capable(cred, ns, Allow ptrace() of any process , If capable should audit the security request )
274  Else ret = security_capable(cred, ns, Allow ptrace() of any process , Default (no) options for the capable function )
277  Return ret == 0
Caller
NameDescribe
__ptrace_may_accessReturns 0 on success, -errno on denial.