Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, unsigned int request)

Type:int

Parameter:

TypeParameterName
struct aa_label *tracer
struct aa_label *tracee
unsigned intrequest
124  xrequest = request << PTRACE_PERM_SHIFT
125  TODO: cleanup audit init so we don't need _aad = {0,} (sa, LSM_AUDIT_DATA_NONE, OP_PTRACE)
127  Return xcheck_labels(tracer, tracee, profile, profile_tracer_perm(profile, tracee, request, & sa), profile_tracee_perm(profile, tracer, xrequest, & sa))
Caller
NameDescribe
may_change_ptraced_domainmay_change_ptraced_domain - check if can change profile on ptraced task*@to_label: profile to change to (NOT NULL)*@info: message if there is an error* Check if current is ptraced and if so if the tracing task is allowed* to trace the new domain* Returns:
apparmor_ptrace_access_check
apparmor_ptrace_traceme