diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-08-19 15:28:39 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-08-19 15:28:39 +0000 |
| commit | 851704bbd0764d1e5ecbcb0a5d84740aa8bbe4ca (patch) | |
| tree | 0e1b7021542779221d19b2a6e207fe83ff2e44c8 /sys/security/mac/mac_framework.c | |
| parent | f44fbeca9b283b9646533adeb39c2a811d11a404 (diff) | |
Notes
Diffstat (limited to 'sys/security/mac/mac_framework.c')
| -rw-r--r-- | sys/security/mac/mac_framework.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index c3d6dbf1dc74..abda929f8ea4 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -1677,6 +1677,8 @@ mac_check_vnode_exec(struct ucred *cred, struct vnode *vp) { int error; + ASSERT_VOP_LOCKED(vp, "mac_check_vnode_exec"); + if (!mac_enforce_process && !mac_enforce_fs) return (0); |
