[Devel] unshare system call

Kevin Wilson wkevils at gmail.com
Mon Mar 25 10:45:08 PDT 2013


Hello, open-vz developers,

I try to understand why in unshare() system call (kernel/fork.c) ,
CLONE_NEWNET is not handled.
Other flags like CLONE_NEWUSER, CLONE_NEWPID, CLONE_NEWNS are dealt with.
unshare() system call invokes unshare_fs(), unshare_fd(),
unshare_userns() and unshare_nsproxy_namespaces().
However it does not unshare network namesapce AFAIK. why ? Is there
something special about
network namesapce in contrast to the other namespaces ?

I will appreciate if someone can elaborate on this.

Best,
Kevin



More information about the Devel mailing list