Function report |
Source Code:security\commoncap.c |
Create Date:2022-07-28 18:37:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Rationale: code calling task_setscheduler, task_setioprio, and* task_setnice, assumes that*
Proto:static int cap_safe_nice(struct task_struct *p)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | p |
| 1085 | ret = 0 |
| 1090 | If Not is_subset && Not ns_capable(user_ns, Allow setting cpu affinity on other processes ) Then ret = -EPERM |
| 1094 | Return ret |
| Name | Describe |
|---|---|
| cap_task_setscheduler | ap_task_setscheduler - Detemine if scheduler policy change is permitted*@p: The task to affect* Detemine if the requested scheduler policy change is permitted for the* specified task, returning 0 if permission is granted, -ve if denied. |
| cap_task_setioprio | ap_task_ioprio - Detemine if I/O priority change is permitted*@p: The task to affect*@ioprio: The I/O priority to set* Detemine if the requested I/O priority change is permitted for the specified* task, returning 0 if permission is granted, -ve if denied. |
| cap_task_setnice | ap_task_ioprio - Detemine if task priority change is permitted*@p: The task to affect*@nice: The nice value to set* Detemine if the requested task priority change is permitted for the* specified task, returning 0 if permission is granted, -ve if denied. |
| 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 |