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>
This commit is contained in:
Mickaël Salaün 2016-03-29 20:51:49 +02:00 committed by Shuah Khan
parent 6c045d07bb
commit 505ce68c6d
1 changed files with 2 additions and 2 deletions

View 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