Function report |
Source Code:security\yama\yama_lsm.c |
Create Date:2022-07-28 19:55:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ptracer_exception_found - tracer registered as exception for this tracee*@tracer: the task_struct of the process attempting ptrace*@tracee: the task_struct of the process to be ptraced* Returns 1 if tracer has a ptracer exception ancestor for tracee.
Proto:static int ptracer_exception_found(struct task_struct *tracer, struct task_struct *tracee)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | tracer | |
struct task_struct * | tracee |
308 | rc = 0 |
310 | struct task_struct * parent = NULL |
311 | bool found = false |
320 | If parent != NULL && same_thread_group(parent, tracer) Then |
326 | If Not thread_group_leader(tracee) Then tracee = fetch RCU-protected pointer for dereferencing(group_leader) |
329 | If invalid Then Continue |
341 | unlock : |
344 | Return rc |
Name | Describe |
---|---|
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. |
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 |