Skip to content

Commit

Permalink
Allow lxc_clear_config_item to clear idmaps.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Casey Marshall authored and stgraber committed Dec 2, 2014
1 parent 3ae4a3c commit de12302
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/confile.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit de12302

Please sign in to comment.