Skip to content

Commit fe5c873

Browse files
committed
parisc: ptrace: use secure_computing_strict()
Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 3c2ea70 commit fe5c873

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎arch/parisc/kernel/ptrace.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/user.h>
1818
#include <linux/personality.h>
1919
#include <linux/security.h>
20+
#include <linux/seccomp.h>
2021
#include <linux/compat.h>
2122
#include <linux/signal.h>
2223
#include <linux/audit.h>
@@ -271,10 +272,7 @@ long do_syscall_trace_enter(struct pt_regs *regs)
271272
long ret = 0;
272273

273274
/* Do the secure computing check first. */
274-
if (secure_computing(regs->gr[20])) {
275-
/* seccomp failures shouldn't expose any additional code. */
276-
return -1;
277-
}
275+
secure_computing_strict(regs->gr[20]);
278276

279277
if (test_thread_flag(TIF_SYSCALL_TRACE) &&
280278
tracehook_report_syscall_entry(regs))

0 commit comments

Comments
 (0)