| Function report | 
| Source Code: security\commoncap.c | Create Date:2022-07-28 18:35:54 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:ap_ptrace_traceme - Determine whether another process may trace the current*@parent: The task proposed to be the tracer* If parent is in the same or an ancestor user_ns and has all current's* capabilities, then ptrace access is allowed
Proto:int cap_ptrace_traceme(struct task_struct *parent)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | parent | 
| 172 | ret = 0 | 
| 177 | child_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.() | 
| 181 | If has_ns_capability(parent, user_ns the caps and keyrings are relative to. , Allow ptrace() of any process ) Then Go to out | 
| 184 | out : | 
| 186 | Return ret | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |