[lxc-devel] [lxc/master] seccomp: ensure fields are set to 0

brauner on Github lxc-bot at linuxcontainers.org
Wed May 1 16:36:34 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190501/14dec06d/attachment.bin>
-------------- next part --------------
From 370460664ff4cac9976524c386000edd15fdcc52 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 1 May 2019 18:35:58 +0200
Subject: [PATCH] seccomp: ensure fields are set to 0

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/seccomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c
index 34abda16a9..f326c8d307 100644
--- a/src/lxc/seccomp.c
+++ b/src/lxc/seccomp.c
@@ -1342,7 +1342,7 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data,
 	struct seccomp_notif *req = conf->seccomp.notifier.req_buf;
 	struct seccomp_notif_resp *resp = conf->seccomp.notifier.rsp_buf;
 	int listener_proxy_fd = conf->seccomp.notifier.proxy_fd;
-	struct seccomp_notify_proxy_msg msg;
+	struct seccomp_notify_proxy_msg msg = {0};
 
 	if (listener_proxy_fd < 0) {
 		ERROR("No seccomp proxy registered");


More information about the lxc-devel mailing list