Skip to content

Commit 3db81af

Browse files
svens-s390kees
authored andcommitted
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 <[email protected]> Fixes: 6a21cc5 ("seccomp: add a return code to trap to userspace") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 5189149 commit 3db81af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/seccomp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,7 @@ static const struct file_operations seccomp_notify_ops = {
12251225
.poll = seccomp_notify_poll,
12261226
.release = seccomp_notify_release,
12271227
.unlocked_ioctl = seccomp_notify_ioctl,
1228+
.compat_ioctl = seccomp_notify_ioctl,
12281229
};
12291230

12301231
static struct file *init_listener(struct seccomp_filter *filter)

0 commit comments

Comments
 (0)