| Function report | 
| Source Code: kernel\nsproxy.c | Create Date:2022-07-28 09:31:29 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:This now handles copy for nsproxy and all namespaces therein
Proto:int copy_namespaces(unsigned long flags, struct task_struct *tsk)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | flags | |
| struct task_struct * | tsk | 
| 136 | old_ns = Namespaces: | 
| 137 | user_ns = task_cred_xxx(tsk, user_ns) | 
| 143 | get_nsproxy(old_ns) | 
| 144 | Return 0 | 
| 147 | If Not ns_capable(user_ns, Allow setting zone reclaim policy ) Then Return -EPERM | 
| 157 | If (flags & (New ipc namespace | share system V SEM_UNDO semantics )) == (New ipc namespace | share system V SEM_UNDO semantics ) Then Return -EINVAL | 
| 165 | Namespaces: = new_ns | 
| 166 | Return 0 | 
| 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 |