• Kirill Tkhai's avatar
    ns: Do not change net_ns in prepare_net_namespaces() · b5225915
    Kirill Tkhai authored
    In next patches usernsd will need to create transport
    socket in the same net_ns as other tasks do their
    TRANSPORT_FD_OFF sockets.
    
    Choose criu net_ns for that: this allows usernsd
    to do not wait for creation of other net_ns, i.e.
    to do not introduce new dependencies between tasks.
    
    In case of (root_ns_mask & CLONE_NEWUSER) != 0
    root_item's user_ns does not allow to restore criu net_ns,
    so do prepare_net_namespaces() in sub-process to do not
    lose criu net.
    
    v3: Introduce __prepare_net_namespaces and execute it in cloned task.
    Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    b5225915
Name
Last commit
Last update
..
compel Loading commit data...
inhfd Loading commit data...
jenkins Loading commit data...
others Loading commit data...
zdtm Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
abrt.sh Loading commit data...
check_actions.py Loading commit data...
crit-recode.py Loading commit data...
criu.py Loading commit data...
empty-netns-prep.sh Loading commit data...
groups.desc Loading commit data...
inhfd.desc Loading commit data...
rpc_pb2.py Loading commit data...
show_action.sh Loading commit data...
umount2.c Loading commit data...
zdtm.desc Loading commit data...
zdtm.py Loading commit data...
zdtm_ct.c Loading commit data...
zdtm_mount_cgroups Loading commit data...