diff options
author | des <des@FreeBSD.org> | 2011-10-18 07:39:27 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2011-10-18 07:39:27 +0000 |
commit | 9ae319147303a93acadebefb29731814c8bad338 (patch) | |
tree | f903064eca8e35e827a8ced5024cf71c2d2a90ad /sys/amd64 | |
parent | 261d55f2225fec05267e5ee62e3c11518562b24f (diff) | |
download | FreeBSD-src-9ae319147303a93acadebefb29731814c8bad338.zip FreeBSD-src-9ae319147303a93acadebefb29731814c8bad338.tar.gz |
Trace attempts to call restricted MD syscalls.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/sys_machdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c index 17eada1..bcd7fa3 100644 --- a/sys/amd64/amd64/sys_machdep.c +++ b/sys/amd64/amd64/sys_machdep.c @@ -203,6 +203,10 @@ sysarch(td, uap) case I386_SET_IOPERM: default: +#ifdef KTRACE + if (KTRPOINT(td, KTR_CAPFAIL)) + ktrcapfail(CAPFAIL_SYSCALL, 0, 0); +#endif return (ECAPMODE); } } |