Author: rwatson
Date: Sat Oct 23 16:59:39 2010
New Revision: 214249
URL: http://svn.freebsd.org/changeset/base/214249

Log:
  Add missing DTrace probe invocation to mac_vnode_check_open; the probe
  was declared, but never used.
  
  MFC after:    3 days
  Sponsored by: Google, Inc.

Modified:
  head/sys/security/mac/mac_vfs.c

Modified: head/sys/security/mac/mac_vfs.c
==============================================================================
--- head/sys/security/mac/mac_vfs.c     Sat Oct 23 14:30:27 2010        
(r214248)
+++ head/sys/security/mac/mac_vfs.c     Sat Oct 23 16:59:39 2010        
(r214249)
@@ -637,6 +637,8 @@ mac_vnode_check_open(struct ucred *cred,
        ASSERT_VOP_LOCKED(vp, "mac_vnode_check_open");
 
        MAC_POLICY_CHECK(vnode_check_open, cred, vp, vp->v_label, accmode);
+       MAC_CHECK_PROBE3(vnode_check_open, error, cred, vp, accmode);
+
        return (error);
 }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to