parisc: ptrace: use secure_computing_strict()
authorHelge Deller <deller@gmx.de>
Sun, 21 Sep 2014 19:01:15 +0000 (21:01 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 21 Sep 2014 19:03:07 +0000 (21:03 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/ptrace.c

index 3bab72462ab53f2cc74e205a7e43e45cc77b2a0f..92438c21d4532e4c55d93adace8da60b081e88cf 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/user.h>
 #include <linux/personality.h>
 #include <linux/security.h>
+#include <linux/seccomp.h>
 #include <linux/compat.h>
 #include <linux/signal.h>
 #include <linux/audit.h>
@@ -271,10 +272,7 @@ long do_syscall_trace_enter(struct pt_regs *regs)
        long ret = 0;
 
        /* Do the secure computing check first. */
-       if (secure_computing(regs->gr[20])) {
-               /* seccomp failures shouldn't expose any additional code. */
-               return -1;
-       }
+       secure_computing_strict(regs->gr[20]);
 
        if (test_thread_flag(TIF_SYSCALL_TRACE) &&
            tracehook_report_syscall_entry(regs))