函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, unsigned int request)

返回类型:int

参数:

类型参数名称
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  返回:xcheck_labels(tracer, tracee, profile, profile_tracer_perm(profile, tracee, request, & sa), profile_tracee_perm(profile, tracer, xrequest, & sa))
调用者
名称描述
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