conf: allow xdev when setting up /dev

Fixes: #3838 Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 3bd21f4e
...@@ -1206,7 +1206,9 @@ static int mount_autodev(const char *name, const struct lxc_rootfs *rootfs, ...@@ -1206,7 +1206,9 @@ static int mount_autodev(const char *name, const struct lxc_rootfs *rootfs,
if (ret < 0) if (ret < 0)
return log_error_errno(-errno, errno, "Failed to mount tmpfs onto %d(dev)", fd_fs); return log_error_errno(-errno, errno, "Failed to mount tmpfs onto %d(dev)", fd_fs);
ret = fs_attach(fd_fs, rootfs->dfd_mnt, "dev", PROTECT_OPATH_DIRECTORY, PROTECT_LOOKUP_BENEATH, 0); ret = fs_attach(fd_fs, rootfs->dfd_mnt, "dev",
PROTECT_OPATH_DIRECTORY,
PROTECT_LOOKUP_BENEATH_XDEV, 0);
} else { } else {
__do_free char *fallback_path = NULL; __do_free char *fallback_path = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment