]> git.proxmox.com Git - mirror_lxc.git/commitdiff
utils: allow cross-device resolution
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 27 Dec 2020 10:19:51 +0000 (11:19 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 27 Dec 2020 10:19:51 +0000 (11:19 +0100)
This is needed to enable containers without a rootfs.

Fixes: #3607
Cc: stable-4.0
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/utils.c

index 243dfd33d370104a8710ad15d785f3165226d65e..c4815d14c7dfab2a504fb7b0cebfea88aa65965f 100644 (file)
@@ -1082,7 +1082,7 @@ int __safe_mount_beneath_at(int beneath_fd, const char *src, const char *dst, co
        __do_close int source_fd = -EBADF, target_fd = -EBADF;
        struct lxc_open_how how = {
                .flags          = O_RDONLY | O_CLOEXEC | O_PATH,
-               .resolve        = RESOLVE_NO_XDEV | RESOLVE_NO_SYMLINKS | RESOLVE_NO_MAGICLINKS | RESOLVE_BENEATH,
+               .resolve        = RESOLVE_NO_SYMLINKS | RESOLVE_NO_MAGICLINKS | RESOLVE_BENEATH,
        };
        int ret;
        char src_buf[LXC_PROC_PID_FD_LEN], tgt_buf[LXC_PROC_PID_FD_LEN];