summaryrefslogtreecommitdiff
path: root/sys/security/mac/mac_framework.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-04-24 04:31:25 +0000
committerAlan Cox <alc@FreeBSD.org>2003-04-24 04:31:25 +0000
commitb6e48e03724d031125da096468da7b9469d9137d (patch)
tree524c091529a13b4f30095fe4af93a54b4cd973f6 /sys/security/mac/mac_framework.c
parent1f7440d9f6779e5ccdb9962456d7f14e94a7b725 (diff)
Notes
Diffstat (limited to 'sys/security/mac/mac_framework.c')
-rw-r--r--sys/security/mac/mac_framework.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c
index 9289d7f2dbb8..15c95a09da40 100644
--- a/sys/security/mac/mac_framework.c
+++ b/sys/security/mac/mac_framework.c
@@ -2093,11 +2093,13 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred,
*/
vm_object_reference(object);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
+ VM_OBJECT_LOCK(object);
vm_object_page_clean(object,
OFF_TO_IDX(offset),
OFF_TO_IDX(offset + vme->end - vme->start +
PAGE_MASK),
OBJPC_SYNC);
+ VM_OBJECT_UNLOCK(object);
VOP_UNLOCK(vp, 0, td);
vm_object_deallocate(object);
/*