PERFORCE change 24668 for review
Robert Watson
rwatson at freebsd.org
Tue Feb 4 21:07:11 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=24668
Change 24668 by rwatson at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list