| Function report | 
| Source Code: kernel\capability.c | Create Date:2022-07-28 09:12:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:ptracer_capable - Determine if the ptracer holds CAP_SYS_PTRACE in the namespace*@tsk: The task that may be ptraced*@ns: The user namespace to search for CAP_SYS_PTRACE in* Return true if the task that is ptracing the current task had CAP_SYS_PTRACE
Proto:bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | tsk | |
| struct user_namespace * | ns | 
| 520 | ret = 0 | 
| 525 | If cred Then ret = security_capable(cred, ns, Allow ptrace() of any process , If capable should audit the security request ) | 
| 529 | Return ret == 0 | 
| Name | Describe | 
|---|---|
| ptrace_access_vm | Access another process' address space via ptrace.* Source/target buffer must be kernel space,* Do not walk the page table directly, use get_user_pages | 
| 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 |