• Andrei Vagin's avatar
    test: don't do MS_REC|MS_PRIVATE for host mounts · 42058dc7
    Andrei Vagin authored
    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: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    42058dc7
Name
Last commit
Last update
..
lib Loading commit data...
static Loading commit data...
transition Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...