Skip to content

Commit

Permalink
seccomp: newer kernels require the buffer to be zeroed
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Apr 8, 2020
1 parent 257f04e commit 060c4d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/seccomp.c
Expand Up @@ -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");
Expand Down

0 comments on commit 060c4d4

Please sign in to comment.