Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2002 18:09:25 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 18771 for review
Message-ID:  <200210060109.g9619Pvo000443@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18771

Change 18771 by rwatson@rwatson_tislabs on 2002/10/05 18:08:40

	Rather than do a redundant set of the requested protections
	if we've disable fs or vm checks in the mmap downgrade,
	actually just return without modifying the call-by-reference
	argument.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#300 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#300 (text+ko) ====

@@ -2330,7 +2330,7 @@
 	ASSERT_VOP_LOCKED(vp, "mac_check_vnode_mmap_downgrade");
 
 	if (!mac_enforce_fs || !mac_enforce_vm)
-		*prot = result;
+		return;
 
 	MAC_PERFORM(check_vnode_mmap_downgrade, cred, vp, &vp->v_label,
 	    &result);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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