Function report | 
Source Code:kernel\user_namespace.c | 
Create Date:2022-07-28 11:19:38 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:new_idmap_permitted
Proto:static bool new_idmap_permitted(const struct file *file, struct user_namespace *ns, int cap_setid, struct uid_gid_map *new_map)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const struct file * | file | |
| struct user_namespace * | ns | |
| int | cap_setid | |
| struct uid_gid_map * | new_map | 
| 1092 | If 64 bytes -- 1 cache line == 1 && count == 1 && uid_eq(owner, effective UID of the task ) Then | 
| 1094 | id = lower_first | 
| 1095 | If cap_setid == Allows forged pids on socket credentials passing. Then | 
| 1097 | If uid_eq(uid, effective UID of the task ) Then Return true | 
| 1099 | Else if cap_setid == Allows forged gids on socket credentials passing. Then | 
| 1101 | If Not (flags & USERNS_SETGROUPS_ALLOWED) && gid_eq(gid, effective GID of the task ) Then Return true | 
| 1119 | Return false | 
| Name | Describe | 
|---|---|
| map_write | 
| 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  |