]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Allow lxc_clear_config_item to clear idmaps.
authorCasey Marshall <cmars@cmarstech.com>
Fri, 28 Nov 2014 07:11:06 +0000 (01:11 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 2 Dec 2014 17:02:24 +0000 (12:02 -0500)
Ran into this when trying to automate stgraber's "GUI in containers"
post.

Signed-off-by: Casey Marshall <casey.marshall@canonical.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/confile.c

index e3853dc5844088dfb0f3c735529137e3e36697f0..da755b8629656fa0dc36d2cb59a499ed58891e7c 100644 (file)
@@ -2241,6 +2241,9 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key)
                lxc_seccomp_free(c);
                return 0;
        }
+       else if (strncmp(key, "lxc.id_map", 10) == 0) {
+               return lxc_clear_idmaps(c);
+       }
 
        return -1;
 }