From fa8e75f009a9dee2b965194e16764c85000b9c2b Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 20 Mar 2021 11:40:19 +0100 Subject: [PATCH] conf: don't allow idmapped lxc.mount.{entry,fstab} just yet Signed-off-by: Christian Brauner --- src/lxc/conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 02aba7ee1..27aca9859 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2258,6 +2258,9 @@ static inline int mount_entry_on_generic(struct mntent *mntent, if (ret < 0) return ret; + if (!is_empty_string(opts.userns_path)) + return syserror_set(-EINVAL, "Idmapped mount entries not yet supported"); + ret = parse_propagationopts(mntent->mnt_opts, &pflags); if (ret < 0) return -1; -- 2.47.2