mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
parisc: ptrace: use secure_computing_strict()
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
3c2ea7024a
commit
fe5c873459
@ -17,6 +17,7 @@
|
|||||||
#include <linux/user.h>
|
#include <linux/user.h>
|
||||||
#include <linux/personality.h>
|
#include <linux/personality.h>
|
||||||
#include <linux/security.h>
|
#include <linux/security.h>
|
||||||
|
#include <linux/seccomp.h>
|
||||||
#include <linux/compat.h>
|
#include <linux/compat.h>
|
||||||
#include <linux/signal.h>
|
#include <linux/signal.h>
|
||||||
#include <linux/audit.h>
|
#include <linux/audit.h>
|
||||||
@ -271,10 +272,7 @@ long do_syscall_trace_enter(struct pt_regs *regs)
|
|||||||
long ret = 0;
|
long ret = 0;
|
||||||
|
|
||||||
/* Do the secure computing check first. */
|
/* Do the secure computing check first. */
|
||||||
if (secure_computing(regs->gr[20])) {
|
secure_computing_strict(regs->gr[20]);
|
||||||
/* seccomp failures shouldn't expose any additional code. */
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (test_thread_flag(TIF_SYSCALL_TRACE) &&
|
if (test_thread_flag(TIF_SYSCALL_TRACE) &&
|
||||||
tracehook_report_syscall_entry(regs))
|
tracehook_report_syscall_entry(regs))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user