From c1c9193cfc89d2d126c31f5797b18a89413b1042 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 27 Dec 2020 11:19:51 +0100 Subject: [PATCH] utils: allow cross-device resolution This is needed to enable containers without a rootfs. Fixes: #3607 Cc: stable-4.0 Signed-off-by: Christian Brauner --- src/lxc/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index 243dfd33d3..c4815d14c7 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -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];