svn commit: r226497 - head/sys/fs/portalfs
Dag-Erling Smorgrav
des at FreeBSD.org
Tue Oct 18 07:31:49 UTC 2011
Author: des
Date: Tue Oct 18 07:31:49 2011
New Revision: 226497
URL: http://svn.freebsd.org/changeset/base/226497
Log:
Trace attempts to open a portal device.
Ceterum censeo portalfs esse delendam.
Modified:
head/sys/fs/portalfs/portal_vnops.c
Modified: head/sys/fs/portalfs/portal_vnops.c
==============================================================================
--- head/sys/fs/portalfs/portal_vnops.c Tue Oct 18 07:29:21 2011 (r226496)
+++ head/sys/fs/portalfs/portal_vnops.c Tue Oct 18 07:31:49 2011 (r226497)
@@ -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
/*
More information about the svn-src-head
mailing list