summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2010-10-23 16:59:39 +0000
committerrwatson <rwatson@FreeBSD.org>2010-10-23 16:59:39 +0000
commit1f7e8301f37d1383a1b54e2fd57a8f750ee42848 (patch)
tree05056cf55882137cb18f11ce27fac606438b1355 /sys/security
parent06405a0e7b5d067ad9d61ed2852e7de3dba30c96 (diff)
downloadFreeBSD-src-1f7e8301f37d1383a1b54e2fd57a8f750ee42848.zip
FreeBSD-src-1f7e8301f37d1383a1b54e2fd57a8f750ee42848.tar.gz
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.
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/mac/mac_vfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/security/mac/mac_vfs.c b/sys/security/mac/mac_vfs.c
index dcd29aa..c4f305b 100644
--- a/sys/security/mac/mac_vfs.c
+++ b/sys/security/mac/mac_vfs.c
@@ -637,6 +637,8 @@ mac_vnode_check_open(struct ucred *cred, struct vnode *vp, accmode_t accmode)
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);
}
OpenPOWER on IntegriCloud