2
0
mirror of git://github.com/lxc/lxc synced 2025-08-22 07:01:33 +00:00

Merge pull request #4069 from brauner/2021-01-21.fixes

lxccontainer: allow xdev when creating the container dir
This commit is contained in:
Stéphane Graber 2022-01-21 07:47:07 -05:00 committed by GitHub
commit 97592484fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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