mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
zdtm: check a case when a task is in sub-mntns, its child is in root mtnns
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
a1d06e53f6
commit
f73802fe6d
@@ -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;
|
||||||
|
Reference in New Issue
Block a user