mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 01:26:22 +00:00
Here is a race when someone umounted something and this operation
isn't propagated into our namespace.
CRIU | Another process
-----------------------------------------------------------------
pivot_root(".", put_root) |
mount(put_root, MS_REC|MS_PRIVATE) |
| umount /xxx/yyy
| umount /xxx -> EBUSY
umount(put_root)
We do this to not affect mounts in put_root, but we can mask
these mounts as slave and this will work for us and for external
users.
Reported-by: Mr Travis
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
8 lines
145 B
Bash
Executable file
8 lines
145 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
mount --make-rslave /
|
|
umount -l /proc
|
|
mount -t proc proc /proc/
|
|
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc/
|
|
exec "$@"
|