diff options
| author | Mickaël Salaün <mic@digikod.net> | 2016-03-29 14:51:49 -0400 |
|---|---|---|
| committer | Shuah Khan <shuahkh@osg.samsung.com> | 2016-03-29 15:01:36 -0400 |
| commit | 505ce68c6da3432454c62e43c24a22ea5b1d754b (patch) | |
| tree | 12f0d43413bd0bdf86175111fc4ebd26b5ab9a45 | |
| parent | 6c045d07bb305c527140bdec4cf8ab50f7c980d8 (diff) | |
selftest/seccomp: Fix the seccomp(2) signature
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Kees Cook <keescook@chromium.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Will Drewry <wad@chromium.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
| -rw-r--r-- | tools/testing/selftests/seccomp/seccomp_bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 9c1460f277c2..150829dd7998 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c | |||
| @@ -1502,10 +1502,10 @@ TEST_F(TRACE_syscall, syscall_dropped) | |||
| 1502 | #endif | 1502 | #endif |
| 1503 | 1503 | ||
| 1504 | #ifndef seccomp | 1504 | #ifndef seccomp |
| 1505 | int seccomp(unsigned int op, unsigned int flags, struct sock_fprog *filter) | 1505 | int seccomp(unsigned int op, unsigned int flags, void *args) |
| 1506 | { | 1506 | { |
| 1507 | errno = 0; | 1507 | errno = 0; |
| 1508 | return syscall(__NR_seccomp, op, flags, filter); | 1508 | return syscall(__NR_seccomp, op, flags, args); |
| 1509 | } | 1509 | } |
| 1510 | #endif | 1510 | #endif |
| 1511 | 1511 | ||
