Commit caca7c1a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

test: static/mntns_root_bind -- Check if unshare successed

Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 76669e30
......@@ -64,7 +64,10 @@ int main(int argc, char **argv)
return 1;
}
if (pid == 0) {
unshare(CLONE_NEWNS);
if (unshare(CLONE_NEWNS)) {
pr_perror("unshare");
return 1;
}
if (mount(path, bpath, NULL, MS_BIND, NULL)) {
pr_perror("mount");
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment