These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / arch / tile / kernel / ptrace.c
index f84eed8..bdc126f 100644 (file)
@@ -262,6 +262,9 @@ int do_syscall_trace_enter(struct pt_regs *regs)
        if (work & _TIF_NOHZ)
                user_exit();
 
+       if (secure_computing() == -1)
+               return -1;
+
        if (work & _TIF_SYSCALL_TRACE) {
                if (tracehook_report_syscall_entry(regs))
                        regs->regs[TREG_SYSCALL_NR] = -1;