Function report |
Source Code:kernel\nsproxy.c |
Create Date:2022-07-28 09:31:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Create new nsproxy and all of its the associated namespaces.* Return the newly created nsproxy. Do not attach this to the task,* leave it to the caller to do proper locking and attach it to task.
Proto:static struct nsproxy *create_new_namespaces(unsigned long flags, struct task_struct *tsk, struct user_namespace *user_ns, struct fs_struct *new_fs)
Type:struct nsproxy
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | flags | |
| struct task_struct * | tsk | |
| struct user_namespace * | user_ns | |
| struct fs_struct * | new_fs |
| 67 | new_nsp = create_nsproxy() |
| 77 | uts_ns = copy_utsname(flags, user_ns, uts_ns) |
| 91 | If IS_ERR(pid_ns_for_children) Then |
| 92 | err = PTR_ERR(pid_ns_for_children) |
| 93 | Go to out_pid |
| 96 | cgroup_ns = copy_cgroup_ns(flags, user_ns, cgroup_ns) |
| 100 | Go to out_cgroup |
| 103 | net_ns = copy_net_ns(flags, user_ns, net_ns) |
| 109 | Return new_nsp |
| 111 | out_net : |
| 112 | put_cgroup_ns(cgroup_ns) |
| 113 | out_cgroup : |
| 114 | If pid_ns_for_children Then put_pid_ns(pid_ns_for_children) |
| 116 | out_pid : |
| 117 | If ipc_ns Then put_ipc_ns(ipc_ns) |
| 119 | out_ipc : |
| 120 | If uts_ns Then put_uts_ns(uts_ns) |
| 122 | out_uts : |
| 123 | If mnt_ns Then put_mnt_ns(mnt_ns) |
| 125 | out_ns : |
| Name | Describe |
|---|---|
| copy_namespaces | This now handles copy for nsproxy and all namespaces therein |
| unshare_nsproxy_namespaces | Called from unshare. Unshare all the namespaces part of nsproxy.* On success, returns the new nsproxy. |
| SYSCALL_DEFINE2 |
| 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 |