Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 2010 16:59:39 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r214249 - head/sys/security/mac
Message-ID:  <201010231659.o9NGxdic092744@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010231659.o9NGxdic092744>