]> git.proxmox.com Git - mirror_lxc.git/commitdiff
seccomp: init and destroy notifier.cookie
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 15 Apr 2021 07:09:10 +0000 (07:09 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 15 Apr 2021 07:09:10 +0000 (07:09 +0000)
It's a follow-up to 84cf6d259b24e4ad48e

Closes https://github.com/lxc/lxc/issues/3806

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
src/lxc/seccomp.c

index bd870d0a875aece055bfda3aebe8d928d9a00fa7..e2a21c95aa3d6d1416267722fdc35bab8c644b04 100644 (file)
@@ -1310,6 +1310,7 @@ void lxc_seccomp_free(struct lxc_seccomp *seccomp)
        seccomp_notify_free(seccomp->notifier.req_buf, seccomp->notifier.rsp_buf);
        seccomp->notifier.req_buf = NULL;
        seccomp->notifier.rsp_buf = NULL;
+       free_disarm(seccomp->notifier.cookie);
 #endif
 }
 
@@ -1560,6 +1561,7 @@ void seccomp_conf_init(struct lxc_conf *conf)
               sizeof(conf->seccomp.notifier.proxy_addr));
        conf->seccomp.notifier.req_buf = NULL;
        conf->seccomp.notifier.rsp_buf = NULL;
+       conf->seccomp.notifier.cookie = NULL;
 #endif
 }