Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2003 13:07:11 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 24668 for review
Message-ID:  <200302042107.h14L7BI8077414@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=24668

Change 24668 by rwatson@rwatson_tislabs on 2003/02/04 13:06:34

	Mirror a similar fix in mac_biba: use 'type', not 'level' when
	parsing and generating MLS label types.  This is probably left
	over from a simpler time.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#156 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#156 (text+ko) ====

@@ -1123,17 +1123,17 @@
 mac_mls_create_ifnet(struct ifnet *ifnet, struct label *ifnetlabel)
 {
 	struct mac_mls *dest;
-	int level;
+	int type;
 
 	dest = SLOT(ifnetlabel);
 
 	if (ifnet->if_type == IFT_LOOP)
-		level = MAC_MLS_TYPE_EQUAL;
+		type = MAC_MLS_TYPE_EQUAL;
 	else
-		level = MAC_MLS_TYPE_LOW;
+		type = MAC_MLS_TYPE_LOW;
 
-	mac_mls_set_single(dest, level, 0, NULL);
-	mac_mls_set_range(dest, level, 0, NULL, level, 0, NULL);
+	mac_mls_set_single(dest, type, 0, NULL);
+	mac_mls_set_range(dest, type, 0, NULL, type, 0, NULL);
 }
 
 static void

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?200302042107.h14L7BI8077414>