From: Christian Brauner Date: Wed, 8 Apr 2020 12:42:05 +0000 (+0200) Subject: seccomp: newer kernels require the buffer to be zeroed X-Git-Tag: lxc-5.0.0~463^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=060c4d4504efd3fe47de40e5366947847803232d;p=thirdparty%2Flxc.git seccomp: newer kernels require the buffer to be zeroed Signed-off-by: Christian Brauner --- diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index 081d315ab..7820db8b2 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -1354,6 +1354,7 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data, char *cookie = conf->seccomp.notifier.cookie; uint64_t req_id; + memset(req, 0, sizeof(*req)); ret = seccomp_notify_receive(fd, req); if (ret) { SYSERROR("Failed to read seccomp notification");