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

Proto:static int profile_tracer_perm(struct aa_profile *tracer, struct aa_label *tracee, unsigned int request, struct common_audit_data *sa)

Type:int

Parameter:

TypeParameterName
struct aa_profile *tracer
struct aa_label *tracee
unsigned intrequest
struct common_audit_data *sa
93  If profile_unconfined(tracer) Then Return 0
96  If PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE) Then Return TODO: conditionals
100  If label == tracee Then Return 0
103  label = label
104  peer = tracee
105  request = 0
106  error = aa_capable - test permission to use capability*@label: label being tested for capability (NOT NULL)*@cap: capability to be tested*@opts: CAP_OPT_NOAUDIT bit determines whether audit record is generated* Look up capability in profile capability set.
109  Return aa_audit - Log a profile based audit event to the audit subsystem*@type: audit type for the message*@profile: profile to check against (NOT NULL)*@sa: audit event (NOT NULL)*@cb: optional callback fn for type specific fields (MAYBE NULL)* Handle default
Caller
NameDescribe
aa_may_ptraceaa_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