2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

mount: don't apply superblock flags for external mounts

Part-of: Fix a few issues to dump/restore Docker containers with userns
travis-ci: success for Fix a few issues to dump/restore Docker containers with userns
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Andrei Vagin 2016-10-26 23:55:21 +03:00 committed by Pavel Emelyanov
parent 7f4907fe6f
commit 771e33214c

View File

@ -1725,7 +1725,7 @@ static int do_new_mount(struct mount_info *mi)
goto out;
}
if (remount_ro && mount(NULL, mi->mountpoint, tp->name,
if (!mi->is_ns_root && !mi->external && remount_ro) {
MS_REMOUNT | MS_RDONLY, NULL)) {
pr_perror("Unable to apply mount options");
return -1;