Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ptrace_may_access

Proto:bool ptrace_may_access(struct task_struct *task, unsigned int mode)

Type:bool

Parameter:

TypeParameterName
struct task_struct *task
unsigned intmode
357  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
358  err = Returns 0 on success, -errno on denial.
359  task_unlock(task)
360  Return Not err
Caller
NameDescribe
SYSCALL_DEFINE5
SYSCALL_DEFINE3sys_get_robust_list() - Get the robust-futex list head of a task*@pid: pid of the process [zero for current task]*@head_ptr: pointer to a list-head pointer, the kernel fills it in*@len_ptr: pointer to a length field, the kernel fills in the header size
COMPAT_SYSCALL_DEFINE3
kernel_move_pagesMove a list of pages in the address space of the currently executing* process.