Commit f73802fe authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm: check a case when a task is in sub-mntns, its child is in root mtnns

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a1d06e53
...@@ -52,6 +52,13 @@ int main(int argc, char **argv) ...@@ -52,6 +52,13 @@ int main(int argc, char **argv)
sleep(1); sleep(1);
return 1; return 1;
} }
pid = fork();
if (pid == 0) {
prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
while (1)
sleep(1);
return 1;
}
if (unshare(CLONE_NEWNS)) { if (unshare(CLONE_NEWNS)) {
pr_perror("unshare"); pr_perror("unshare");
return 1; 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