From 26f1b3902c61c2b2c0c1a2577cd9b5cb0457a682 Mon Sep 17 00:00:00 2001 From: Casey Marshall Date: Fri, 28 Nov 2014 01:11:06 -0600 Subject: [PATCH] Allow lxc_clear_config_item to clear idmaps. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ran into this when trying to automate stgraber's "GUI in containers" post. Signed-off-by: Casey Marshall Acked-by: Stéphane Graber --- src/lxc/confile.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 83dab05ca..7202ad788 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -2370,9 +2370,12 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key) lxc_seccomp_free(c); return 0; } - else if (strncmp(key, "lxc.environment", 15) == 0) + else if (strncmp(key, "lxc.environment", 15) == 0) { return lxc_clear_environment(c); - + } + else if (strncmp(key, "lxc.id_map", 10) == 0) { + return lxc_clear_idmaps(c); + } return -1; }