Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ptrace_setoptions

Proto:static int ptrace_setoptions(struct task_struct *child, unsigned long data)

Type:int

Parameter:

TypeParameterName
struct task_struct *child
unsigned longdata
649  If data & ~PTRACE_O_MASK Then Return -EINVAL
652  If Value for the false possibility is greater at compile time(data & PTRACE_O_SUSPEND_SECCOMP) Then
653  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_CHECKPOINT_RESTORE) || Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SECCOMP) Then Return -EINVAL
657  If Not Check operation authority Then Return -EPERM
660  If seccomp_mode( & seccomp) != seccomp is not in use. || ptrace & PT_SUSPEND_SECCOMP Then Return -EPERM
666  flags = ptrace
667  flags &= ~(PTRACE_O_MASK << PT_OPT_FLAG_SHIFT)
668  flags |= data << PT_OPT_FLAG_SHIFT
669  ptrace = flags
671  Return 0
Caller
NameDescribe
ptrace_request