aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-07-05 18:26:16 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-07-05 18:27:56 +0200
commit39e878725b2c71d10726c97a69a7e12331c47f24 (patch)
treeddc42357d0dc2691e392a39f1b2bb5a891d9eddc
parentd68b09a34869125238e0d355a6ecefcf77ad01c9 (diff)
downloadseitan-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/seitan.c b/seitan.c
index bd1a7e2..eff6523 100644
--- a/seitan.c
+++ b/seitan.c
@@ -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));