freebsd-nq/sys/pc98
John Baldwin 39092e79ed Don't allow userland to set hardware watch points on kernel memory at all.
Previously, we tried to allow this only for root.  However, we were calling
suser() on the *target* process rather than the current process.  This
means that if you can ptrace() a process running as root you can set a
hardware watch point in the kernel.  In practice I think you probably have
to be root in order to pass the p_candebug() checks in ptrace() to attach
to a process running as root anyway.  Rather than fix the suser(), I just
axed the entire idea, as I can't think of any good reason _at all_ for
userland to set hardware watch points for KVM.

MFC after:	3 days
Also thinks hardware watch points on KVM from userland are bad:	bde, rwatson
2006-03-14 16:13:55 +00:00
..
apm Rename from apm_bioscall.s to apm_bioscall.S for removing a special rule 2005-04-20 12:28:20 +00:00
cbus - Use bus_setup_intr() and bus_teardown_intr() to register device driver 2006-02-22 18:16:26 +00:00
compile
conf MFi386: revision 1.1220. 2006-03-04 07:31:58 +00:00
include By popular demand, move __HAVE_ACPI and __PCI_REROUTE_INTERRUPT into 2006-01-09 06:05:57 +00:00
linux Add reach-over include files to read i386/foo.h. In time, the pc98 2005-04-01 23:19:43 +00:00
pc98 Don't allow userland to set hardware watch points on kernel memory at all. 2006-03-14 16:13:55 +00:00