selftest/seccomp: Fix the seccomp(2) signature
authorMickaël Salaün <mic@digikod.net>
Tue, 29 Mar 2016 18:51:49 +0000 (20:51 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 29 Mar 2016 19:01:36 +0000 (13:01 -0600)
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>
tools/testing/selftests/seccomp/seccomp_bpf.c

index 9c1460f277c296f3578144c0240dee6127e88425..150829dd799876dc11a64bddff1760efb4a13066 100644 (file)
@@ -1502,10 +1502,10 @@ TEST_F(TRACE_syscall, syscall_dropped)
 #endif
 
 #ifndef seccomp
-int seccomp(unsigned int op, unsigned int flags, struct sock_fprog *filter)
+int seccomp(unsigned int op, unsigned int flags, void *args)
 {
        errno = 0;
-       return syscall(__NR_seccomp, op, flags, filter);
+       return syscall(__NR_seccomp, op, flags, args);
 }
 #endif
 
This page took 0.027885 seconds and 5 git commands to generate.