mirror of
git://github.com/lxc/lxc
synced 2025-08-29 08:52:01 +00:00
lxccontainer: allow xdev when creating the container dir
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
a368b91a90
commit
1238fee01b
@ -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