Function report | 
Source Code:kernel\user_namespace.c | 
Create Date:2022-07-28 11:19:42 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:proc_setgroups_write
Proto:ssize_t proc_setgroups_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| const char __user * | buf | |
| size_t | count | |
| loff_t * | ppos | 
| 1149 | If copy_from_user(kbuf, buf, count) Then Go to out | 
| 1157 | pos += 5 | 
| 1158 | setgroups_allowed = true | 
| 1161 | pos += 4 | 
| 1162 | setgroups_allowed = false | 
| 1164 | Else Go to out | 
| 1168 | pos = skip_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str. | 
| 1173 | mutex_lock( & userns_state_mutex) | 
| 1174 | If setgroups_allowed Then | 
| 1178 | If Not (flags & USERNS_SETGROUPS_ALLOWED) Then Go to out_unlock | 
| 1180 | Else | 
| 1184 | If 64 bytes -- 1 cache line != 0 Then Go to out_unlock | 
| 1186 | flags &= ~USERNS_SETGROUPS_ALLOWED | 
| 1193 | out : | 
| 1194 | Return ret | 
| 1195 | out_unlock : | 
| 1197 | Go to out | 
| 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  |