diff options
author | Kees Cook <keescook@chromium.org> | 2020-09-12 13:08:20 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-09-19 09:59:16 +0200 |
commit | 05b52c6625278cc6ed1245a569167f86a971ff86 (patch) | |
tree | ba5416e41e2bdac19f47bc0c05f9958d06a0954f /tools/testing/selftests/seccomp | |
parent | selftests/seccomp: Use bitwise instead of arithmetic operator for flags (diff) | |
download | linux-05b52c6625278cc6ed1245a569167f86a971ff86.tar.xz linux-05b52c6625278cc6ed1245a569167f86a971ff86.zip |
selftests/seccomp: Use __NR_mknodat instead of __NR_mknod
The __NR_mknod syscall doesn't exist on arm64 (only __NR_mknodat).
Switch to the modern syscall.
Fixes: ad5682184a81 ("selftests/seccomp: Check for EPOLLHUP for user_notif")
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-16-keescook@chromium.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'tools/testing/selftests/seccomp')
-rw-r--r-- | tools/testing/selftests/seccomp/seccomp_bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index c5002fc25b00..6ddef9fc7ea5 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -3746,7 +3746,7 @@ TEST(user_notification_filter_empty) if (pid == 0) { int listener; - listener = user_notif_syscall(__NR_mknod, SECCOMP_FILTER_FLAG_NEW_LISTENER); + listener = user_notif_syscall(__NR_mknodat, SECCOMP_FILTER_FLAG_NEW_LISTENER); if (listener < 0) _exit(EXIT_FAILURE); |