hw-breakpoints: Tag ptrace breakpoint as exclude_kernel
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 22 Apr 2010 03:05:45 +0000 (05:05 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 1 May 2010 02:32:07 +0000 (04:32 +0200)
commit73266fc1df2f94cf72b3beba3eee3b88ed0b0664
tree876f6ab9c85715665e5c5562d70d9ea2c10facea
parentd00a47cce569a3e660a8c9de5d57af28d6a9f0f7
hw-breakpoints: Tag ptrace breakpoint as exclude_kernel

Tag ptrace breakpoints with the exclude_kernel attribute set. This
will make it easier to set generic policies on breakpoints, when it
comes to ensure nobody unpriviliged try to breakpoint on the kernel.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Cc: K. Prasad <prasad@linux.vnet.ibm.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
arch/sh/kernel/ptrace_32.c
arch/x86/kernel/ptrace.c
include/linux/hw_breakpoint.h