Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-28 19:53:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:apparmor_ptrace_traceme

Proto:static int apparmor_ptrace_traceme(struct task_struct *parent)

Type:int

Parameter:

TypeParameterName
struct task_struct *parent
137  tracee = __begin_current_label_crit_section - current's confining label* Returns: up to date confining label or the ns unconfined label (NOT NULL)* safe to call inside locks* The returned reference must be put with __end_current_label_crit_section()* This must NOT
138  tracer = aa_get_task_label - Get another task's label*@task: task to query (NOT NULL)* Returns: counted reference to @task's label
139  error = aa_may_ptrace - test if tracer task can trace the tracee*@tracer: label of the task doing the tracing (NOT NULL)*@tracee: task label to be traced*@request: permission request* Returns: %0 else error code if permission denied or error
140  aa_put_label(tracer)
141  __end_current_label_crit_section(tracee)
143  Return error