]> Git Repo - linux.git/commitdiff
selftest/seccomp: Fix the seccomp(2) signature
authorMickaël Salaün <[email protected]>
Tue, 29 Mar 2016 18:51:49 +0000 (20:51 +0200)
committerShuah Khan <[email protected]>
Tue, 29 Mar 2016 19:01:36 +0000 (13:01 -0600)
Signed-off-by: Mickaël Salaün <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Will Drewry <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
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.062209 seconds and 4 git commands to generate.