mirror of
git://github.com/lxc/lxc
synced 2025-08-29 12:31:59 +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:
commit
97592484fa
@ -1222,7 +1222,7 @@ static int do_create_container_dir(const char *path, struct lxc_conf *conf)
|
|||||||
if (ret < 0 && errno != EEXIST)
|
if (ret < 0 && errno != EEXIST)
|
||||||
return -errno;
|
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)
|
if (fd_rootfs < 0)
|
||||||
return syserror("Failed to open container directory \"%d(%s)\"", fd_rootfs, path);
|
return syserror("Failed to open container directory \"%d(%s)\"", fd_rootfs, path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user