函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\ipc.c Create Date:2022-07-27 21:26:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:profile_tracer_perm

函数原型:static int profile_tracer_perm(struct aa_profile *tracer, struct aa_label *tracee, unsigned int request, struct common_audit_data *sa)

返回类型:int

参数:

类型参数名称
struct aa_profile *tracer
struct aa_label *tracee
unsigned intrequest
struct common_audit_data *sa
93  如果profile_unconfined(tracer)则返回:0
96  如果PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)则返回:TODO: conditionals
100  如果label恒等于tracee则返回: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  返回: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
调用者
名称描述
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