]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix PPC32 SECCOMP, unexport do_syscall_trace_{enter,leave}
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 22 Sep 2006 08:32:45 +0000 (09:32 +0100)
committerPaul Mackerras <paulus@samba.org>
Tue, 26 Sep 2006 05:24:34 +0000 (15:24 +1000)
commit94983cb7881dff760d724759105a6f67935b571d
treed288981c3aec3c5a0b976c4a3cfb6f10e95ab031
parent4b9c876a812fd3e2b17e2d1c94082ee4cf31608f
[POWERPC] Fix PPC32 SECCOMP, unexport do_syscall_trace_{enter,leave}

The secure_computing() call which automatically aborts a process if it
tries to execute a syscall it shouldn't is much more useful if we
actually do it _before_ the syscall, rather than afterwards. PPC64 got
this right, but the original incorrect behaviour inherited from arch/ppc
was preserved by ifdefs. Make it the same on PPC32 too.

Also, I see no need to export do_syscall_trace_{leave,enter} on ppc32 --
they were only exported because the old do_syscall_trace() (which they
replaced) used to be.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ptrace.c