diff options
author | des <des@FreeBSD.org> | 2011-10-18 07:31:49 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2011-10-18 07:31:49 +0000 |
commit | 261d55f2225fec05267e5ee62e3c11518562b24f (patch) | |
tree | 522cab33af72db0568099cb5b3c9584500e1f48f /sys/fs/portalfs/portal_vnops.c | |
parent | 37268b786649675593ba43f7aaebfab6c68de4d8 (diff) | |
download | FreeBSD-src-261d55f2225fec05267e5ee62e3c11518562b24f.zip FreeBSD-src-261d55f2225fec05267e5ee62e3c11518562b24f.tar.gz |
Trace attempts to open a portal device.
Ceterum censeo portalfs esse delendam.
Diffstat (limited to 'sys/fs/portalfs/portal_vnops.c')
-rw-r--r-- | sys/fs/portalfs/portal_vnops.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c index 7cd5267..f9ef08a 100644 --- a/sys/fs/portalfs/portal_vnops.c +++ b/sys/fs/portalfs/portal_vnops.c @@ -240,8 +240,13 @@ portal_open(ap) * This may require access to a global namespace (e.g. an IP address); * disallow it entirely, as we do open(2). */ - if (IN_CAPABILITY_MODE(td)) + if (IN_CAPABILITY_MODE(td)) { +#ifdef KTRACE + if (KTRPOINT(td, KTR_CAPFAIL)) + ktrcapfail(CAPFAIL_SYSCALL, 0, 0); +#endif return (ECAPMODE); + } #endif /* |