Function report |
Source Code:security\yama\yama_lsm.c |
Create Date:2022-07-28 19:55:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int yama_ptrace_traceme(struct task_struct *parent)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | parent |
| 402 | rc = 0 |
| 406 | Case ptrace_scope == YAMA_SCOPE_CAPABILITY |
| 407 | If Not has_ns_capability(parent, current_user_ns(), Allow ptrace() of any process ) Then rc = -EPERM |
| 409 | Break |
| 410 | Case ptrace_scope == YAMA_SCOPE_NO_ATTACH |
| 415 | If rc Then |
| 421 | Return rc |
| 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 |