]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: allow xdev when setting up /dev
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 12 May 2021 07:18:53 +0000 (09:18 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 12 May 2021 08:23:14 +0000 (10:23 +0200)
Fixes: #3838
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 123591cf8d3b0f6b38a35f29a8fb943cbe942cf7..dbcd57835b7613d72f4340668f0c95f10d904502 100644 (file)
@@ -1206,7 +1206,9 @@ static int mount_autodev(const char *name, const struct lxc_rootfs *rootfs,
                if (ret < 0)
                        return log_error_errno(-errno, errno, "Failed to mount tmpfs onto %d(dev)", fd_fs);
 
-               ret = fs_attach(fd_fs, rootfs->dfd_mnt, "dev", PROTECT_OPATH_DIRECTORY, PROTECT_LOOKUP_BENEATH, 0);
+               ret = fs_attach(fd_fs, rootfs->dfd_mnt, "dev",
+                               PROTECT_OPATH_DIRECTORY,
+                               PROTECT_LOOKUP_BENEATH_XDEV, 0);
        } else {
                __do_free char *fallback_path = NULL;