diff options
author | Helge Deller <deller@gmx.de> | 2014-09-21 21:01:15 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2014-09-21 21:03:07 +0200 |
commit | fe5c873459a973e59854bd235a7e6b3eaa8e5fe0 (patch) | |
tree | 329dc191f2f7a6edd635601a80ded13b22f5f6df /arch | |
parent | 3c2ea7024a686e9e7121ef6405da7412619a98f5 (diff) | |
download | talos-obmc-linux-fe5c873459a973e59854bd235a7e6b3eaa8e5fe0.tar.gz talos-obmc-linux-fe5c873459a973e59854bd235a7e6b3eaa8e5fe0.zip |
parisc: ptrace: use secure_computing_strict()
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/parisc/kernel/ptrace.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c index 3bab72462ab5..92438c21d453 100644 --- a/arch/parisc/kernel/ptrace.c +++ b/arch/parisc/kernel/ptrace.c @@ -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)) |