From: Evgeny Vereshchagin Date: Thu, 15 Apr 2021 07:09:10 +0000 (+0000) Subject: seccomp: init and destroy notifier.cookie X-Git-Tag: lxc-5.0.0~193^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3807%2Fhead;p=thirdparty%2Flxc.git seccomp: init and destroy notifier.cookie It's a follow-up to 84cf6d259b24e4ad48e Closes https://github.com/lxc/lxc/issues/3806 Signed-off-by: Evgeny Vereshchagin --- diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index bd870d0a8..e2a21c95a 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -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 }