diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-07-05 18:26:16 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-07-05 18:27:56 +0200 |
commit | 39e878725b2c71d10726c97a69a7e12331c47f24 (patch) | |
tree | ddc42357d0dc2691e392a39f1b2bb5a891d9eddc | |
parent | d68b09a34869125238e0d355a6ecefcf77ad01c9 (diff) | |
download | seitan-39e878725b2c71d10726c97a69a7e12331c47f24.tar seitan-39e878725b2c71d10726c97a69a7e12331c47f24.tar.gz seitan-39e878725b2c71d10726c97a69a7e12331c47f24.tar.bz2 seitan-39e878725b2c71d10726c97a69a7e12331c47f24.tar.lz seitan-39e878725b2c71d10726c97a69a7e12331c47f24.tar.xz seitan-39e878725b2c71d10726c97a69a7e12331c47f24.tar.zst seitan-39e878725b2c71d10726c97a69a7e12331c47f24.zip |
seitan: Zero out the request structure before SECCOMP_IOCTL_NOTIF_RECV
Otherwise we'll get EINVAL (as expected) -- reproducibly, at least,
when we handle more than one call.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | seitan.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -241,6 +241,7 @@ loop: die("error on notifier"); } + memset(req, 0, sizeof(*req)); if (ioctl(notifier, SECCOMP_IOCTL_NOTIF_RECV, req) < 0) die("receiving seccomp notification: %s", strerror(errno)); |