path: root/kernel/seccomp.c
diff options
authorSven Schnelle <>2020-03-10 13:33:32 +0100
committerKees Cook <>2020-03-29 21:10:51 -0700
commit3db81afd99494a33f1c3839103f0429c8f30cb9d (patch)
tree80d7b3bba65c0cc8489ef315764e04cb3b5b849c /kernel/seccomp.c
parent51891498f2da78ee64dfad88fa53c9e85fb50abf (diff)
seccomp: Add missing compat_ioctl for notify
Executing the seccomp_bpf testsuite under a 64-bit kernel with 32-bit userland (both s390 and x86) doesn't work because there's no compat_ioctl handler defined. Add the handler. Signed-off-by: Sven Schnelle <> Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") Cc: Link: Signed-off-by: Kees Cook <>
Diffstat (limited to 'kernel/seccomp.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index 29022c1bbe18..ec5c606bc3a1 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -1225,6 +1225,7 @@ static const struct file_operations seccomp_notify_ops = {
.poll = seccomp_notify_poll,
.release = seccomp_notify_release,
.unlocked_ioctl = seccomp_notify_ioctl,
+ .compat_ioctl = seccomp_notify_ioctl,
static struct file *init_listener(struct seccomp_filter *filter)