confile: handle appending init groups

parent 506ec838
......@@ -2671,6 +2671,7 @@ struct lxc_conf *lxc_conf_init(void)
* default to running as UID/GID 0 when using lxc-execute */
new->init_uid = 0;
new->init_gid = 0;
memset(&new->init_groups, 0, sizeof(lxc_groups_t));
memset(&new->cgroup_meta, 0, sizeof(struct lxc_cgroup));
memset(&new->ns_share, 0, sizeof(char *) * LXC_NS_MAX);
seccomp_conf_init(new);
......
......@@ -4618,14 +4618,6 @@ static inline int clr_config_init_gid(const char *key, struct lxc_conf *c,
return 0;
}
static inline int clr_config_init_groups(const char *key, struct lxc_conf *c,
void *data)
{
free_disarm(c->init_groups.list);
c->init_groups.size = 0;
return 0;
}
static inline int clr_config_ephemeral(const char *key, struct lxc_conf *c,
void *data)
{
......
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