]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
reset root_nsuid_map and root_nsgid_map when idmaps is cleared 4357/head
authorJef Steelant <jef.steelant_ext@softathome.com>
Wed, 11 Oct 2023 09:56:58 +0000 (09:56 +0000)
committerJef Steelant <jef@steelant.be>
Wed, 11 Oct 2023 13:19:01 +0000 (13:19 +0000)
Signed-off-by: Jef Steelant <jef@steelant.be>
src/lxc/conf.c

index b900089fc4d41c3ac0f722285bc713a408b08aa6..9c2d6b66a90f84a17355f481dd79296c0beca890 100644 (file)
@@ -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);
 }