diff options
author | Helge Deller <deller@gmx.de> | 2014-09-21 15:01:15 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2014-09-21 15:03:07 -0400 |
commit | fe5c873459a973e59854bd235a7e6b3eaa8e5fe0 (patch) | |
tree | 329dc191f2f7a6edd635601a80ded13b22f5f6df /arch | |
parent | 3c2ea7024a686e9e7121ef6405da7412619a98f5 (diff) |
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 @@ | |||
17 | #include <linux/user.h> | 17 | #include <linux/user.h> |
18 | #include <linux/personality.h> | 18 | #include <linux/personality.h> |
19 | #include <linux/security.h> | 19 | #include <linux/security.h> |
20 | #include <linux/seccomp.h> | ||
20 | #include <linux/compat.h> | 21 | #include <linux/compat.h> |
21 | #include <linux/signal.h> | 22 | #include <linux/signal.h> |
22 | #include <linux/audit.h> | 23 | #include <linux/audit.h> |
@@ -271,10 +272,7 @@ long do_syscall_trace_enter(struct pt_regs *regs) | |||
271 | long ret = 0; | 272 | long ret = 0; |
272 | 273 | ||
273 | /* Do the secure computing check first. */ | 274 | /* Do the secure computing check first. */ |
274 | if (secure_computing(regs->gr[20])) { | 275 | secure_computing_strict(regs->gr[20]); |
275 | /* seccomp failures shouldn't expose any additional code. */ | ||
276 | return -1; | ||
277 | } | ||
278 | 276 | ||
279 | if (test_thread_flag(TIF_SYSCALL_TRACE) && | 277 | if (test_thread_flag(TIF_SYSCALL_TRACE) && |
280 | tracehook_report_syscall_entry(regs)) | 278 | tracehook_report_syscall_entry(regs)) |