]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxccontainer: allow xdev when creating the container dir
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 21 Jan 2022 08:44:01 +0000 (09:44 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 27 Jan 2022 09:32:25 +0000 (10:32 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.c

index 5dbfc0fc5c5c006d58d8baa76ff085b55e7e7517..4363340b3c86aaf77317092a6227573af3ab7a95 100644 (file)
@@ -1222,7 +1222,7 @@ static int do_create_container_dir(const char *path, struct lxc_conf *conf)
        if (ret < 0 && errno != EEXIST)
                return -errno;
 
-       fd_rootfs = open_at(-EBADF, path, O_DIRECTORY | O_CLOEXEC, PROTECT_LOOKUP_ABSOLUTE_WITH_SYMLINKS, 0);
+       fd_rootfs = open_at(-EBADF, path, O_DIRECTORY | O_CLOEXEC, PROTECT_LOOKUP_ABSOLUTE_XDEV_SYMLINKS, 0);
        if (fd_rootfs < 0)
                return syserror("Failed to open container directory \"%d(%s)\"", fd_rootfs, path);