aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/ptrace.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-07-10 19:49:28 -0400
committerDavid S. Miller <davem@davemloft.net>2005-07-10 19:49:28 -0400
commitbb49bcda15f1bc1a52c7f887db278447f332eaa7 (patch)
treedec754638f3cbc4123e715c42573648859e20735 /arch/sparc64/kernel/ptrace.c
parentaf166d15c3ad4d501a0c4fb5b4547bb2ba205918 (diff)
[SPARC64]: Add SECCOMP support.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/ptrace.c')
-rw-r--r--arch/sparc64/kernel/ptrace.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c
index 80a76e2ad732..5abf596f5964 100644
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -630,9 +630,9 @@ out:
630 630
631asmlinkage void syscall_trace(void) 631asmlinkage void syscall_trace(void)
632{ 632{
633#ifdef DEBUG_PTRACE 633 /* do the secure computing check first */
634 printk("%s [%d]: syscall_trace\n", current->comm, current->pid); 634 secure_computing(current_thread_info()->kregs->u_regs[UREG_G1]);
635#endif 635
636 if (!test_thread_flag(TIF_SYSCALL_TRACE)) 636 if (!test_thread_flag(TIF_SYSCALL_TRACE))
637 return; 637 return;
638 if (!(current->ptrace & PT_PTRACED)) 638 if (!(current->ptrace & PT_PTRACED))
@@ -645,12 +645,8 @@ asmlinkage void syscall_trace(void)
645 * for normal use. strace only continues with a signal if the 645 * for normal use. strace only continues with a signal if the
646 * stopping signal is not SIGTRAP. -brl 646 * stopping signal is not SIGTRAP. -brl
647 */ 647 */
648#ifdef DEBUG_PTRACE
649 printk("%s [%d]: syscall_trace exit= %x\n", current->comm,
650 current->pid, current->exit_code);
651#endif
652 if (current->exit_code) { 648 if (current->exit_code) {
653 send_sig (current->exit_code, current, 1); 649 send_sig(current->exit_code, current, 1);
654 current->exit_code = 0; 650 current->exit_code = 0;
655 } 651 }
656} 652}