函数逻辑报告 |
Source Code:security\commoncap.c |
Create Date:2022-07-27 20:09:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ap_ptrace_access_check - Determine whether the current process may access* another*@child: The process to be accessed*@mode: The mode of attachment.* If we are in the same or an ancestor user_ns and have all the target
函数原型:int cap_ptrace_access_check(struct task_struct *child, unsigned int mode)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | child | |
unsigned int | mode |
135 | ret等于0 |
140 | cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
144 | 否则caller_caps等于 caps we're permitted |
149 | 如果ns_capable( user_ns the caps and keyrings are relative to. , Allow ptrace() of any process )则转到:out |
152 | out : |
154 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |