函数逻辑报告 |
Source Code:security\yama\yama_lsm.c |
Create Date:2022-07-27 21:49:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:defers execution because cmdline access can sleep
函数原型:static void report_access(const char *access, struct task_struct *target, struct task_struct *agent)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | access | |
struct task_struct * | target | |
struct task_struct * | agent |
80 | assert_spin_locked( & Protection against (de-)allocation: mm, files, fs, tty, keyrings, mems_allowed, mempolicy: ) |
82 | 如果flags按位与I am a kernel thread 则 |
86 | pr_notice_ratelimited("ptrace %s of \"%s\"[%d] was attempted by \"%s\"[%d]\n", access, 是否使用FPU, 进程ID, get_task_comm(agent_comm, agent), 进程ID) |
90 | 返回 |
94 | 如果非info则返回 |
96 | init_task_work( & work, __report_access) |
98 | get_task_struct(agent) |
105 | WARN(1, "report_access called from exiting task") |
106 | put_task_struct(target) |
107 | put_task_struct(agent) |
108 | 释放内存 |
名称 | 描述 |
---|---|
yama_ptrace_access_check | yama_ptrace_access_check - validate PTRACE_ATTACH calls*@child: task that current task is attempting to ptrace*@mode: ptrace attach mode* Returns 0 if following the ptrace is allowed, -ve on error. |
yama_ptrace_traceme | yama_ptrace_traceme - validate PTRACE_TRACEME calls*@parent: task that will become the ptracer of the current task* Returns 0 if following the ptrace is allowed, -ve on error. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |