Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ptrace_traceme -- helper for PTRACE_TRACEME* Performs checks and sets PT_PTRACED.* Should be used by all ptrace implementations for PTRACE_TRACEME.

Proto:static int ptrace_traceme(void)

Type:int

Parameter:Nothing

475  ret = -EPERM
477  write_lock_irq( & tasklist_lock)
479  If Not ptrace Then
480  ret = security_ptrace_traceme(parent)
486  If Not ret && Not (flags & Getting shut down ) Then
487  ptrace = PT_PTRACED
491  write_unlock_irq( & tasklist_lock)
493  Return ret
Caller
NameDescribe
SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE4