Commit 7f75e74a authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm_ct: Mount binfmt misc in ct creation

The mountpoints.c test creates such mount and criu will try to
kerndat-check one, so this fs should be on "host".
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a5c2e8cd
...@@ -40,6 +40,11 @@ int main(int argc, char **argv) ...@@ -40,6 +40,11 @@ int main(int argc, char **argv)
fprintf(stderr, "mount(pts): %m"); fprintf(stderr, "mount(pts): %m");
return 1; return 1;
} }
if (mount("zdtm_binfmt", "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0,
NULL)) {
fprintf(stderr, "mount(binfmt_misc): %m");
return 1;
}
if (mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL)) { if (mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL)) {
fprintf(stderr, "mount(ptmx): %m"); fprintf(stderr, "mount(ptmx): %m");
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