2
0
mirror of git://github.com/lxc/lxc synced 2025-08-22 13:49:28 +00:00

lxccontainer: allow xdev when creating the container dir

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2022-01-21 09:44:01 +01:00
parent a368b91a90
commit 1238fee01b
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View 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);