Commit 26f1b390 by Casey Marshall Committed by Stéphane Graber

Allow lxc_clear_config_item to clear idmaps.

Ran into this when trying to automate stgraber's "GUI in containers" post. Signed-off-by: 's avatarCasey Marshall <casey.marshall@canonical.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 40d81161
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment