Skip to content

Commit

Permalink
Merge pull request lxc#4357 from ElJeffe/fix-idmap-clear
Browse files Browse the repository at this point in the history
reset root_nsuid_map and root_nsgid_map when idmaps is cleared
  • Loading branch information
stgraber authored Oct 12, 2023
2 parents d39c672 + cc6819c commit 9c1d70e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lxc/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -4577,6 +4577,8 @@ define_cleanup_function(struct list_head *, __lxc_free_idmap);

int lxc_clear_idmaps(struct lxc_conf *c)
{
c->root_nsuid_map = NULL;
c->root_nsgid_map = NULL;
return lxc_free_idmap(&c->id_map);
}

Expand Down

0 comments on commit 9c1d70e

Please sign in to comment.