From: Christian Brauner Date: Sat, 20 Mar 2021 10:40:19 +0000 (+0100) Subject: conf: don't allow idmapped lxc.mount.{entry,fstab} just yet X-Git-Tag: lxc-5.0.0~197^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa8e75f009a9dee2b965194e16764c85000b9c2b;p=thirdparty%2Flxc.git conf: don't allow idmapped lxc.mount.{entry,fstab} just yet Signed-off-by: Christian Brauner --- 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;