mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 20:26:41 +00:00
Allow lxc_clear_config_item to clear idmaps.
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>
This commit is contained in:
parent
40d811614c
commit
26f1b3902c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user