]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: don't allow idmapped lxc.mount.{entry,fstab} just yet 3709/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 20 Mar 2021 10:40:19 +0000 (11:40 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 21 Apr 2021 08:07:35 +0000 (10:07 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 02aba7ee190dc04b3b3efc648383697a5c8dad32..27aca98595ddb0f7913fe8387c68a94717a08cab 100644 (file)
@@ -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;