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:yama_task_prctl - check for Yama-specific prctl operations*@option: operation*@arg2: argument*@arg3: argument*@arg4: argument*@arg5: argument* Return 0 on success, -ve on error. -ENOSYS is returned when Yama* does not handle the given option.
Proto:static int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | option | |
unsigned long | arg2 | |
unsigned long | arg3 | |
unsigned long | arg4 | |
unsigned long | arg5 |
225 | myself = current process |
236 | If Not thread_group_leader(myself) Then myself = fetch RCU-protected pointer for dereferencing(group_leader) |
238 | get_task_struct(myself) |
241 | If arg2 == 0 Then |
243 | rc = 0 |
244 | Else if arg2 == PR_SET_PTRACER_ANY || arg2 == -1 Then |
246 | Else |
258 | put_task_struct(myself) |
259 | Break |
262 | 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 |