From 413da05130b4d0ef260322f565d8b087640ac1bb Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 4 Feb 2003 21:00:51 +0000 Subject: Rename the variable 'grade' to 'type' in interface parsing and labeling for Biba. Rename the variable 'level' to 'type' in interface parsing and labeling for MLS. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories --- sys/security/mac_biba/mac_biba.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys/security/mac_biba') diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index 67cb05b..b5288ed 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -1127,21 +1127,21 @@ mac_biba_create_ifnet(struct ifnet *ifnet, struct label *ifnetlabel) char tifname[IFNAMSIZ], ifname[IFNAMSIZ], *p, *q; char tiflist[sizeof(trusted_interfaces)]; struct mac_biba *dest; - int len, grade; + int len, type; dest = SLOT(ifnetlabel); if (ifnet->if_type == IFT_LOOP) { - grade = MAC_BIBA_TYPE_EQUAL; + type = MAC_BIBA_TYPE_EQUAL; goto set; } if (trust_all_interfaces) { - grade = MAC_BIBA_TYPE_HIGH; + type = MAC_BIBA_TYPE_HIGH; goto set; } - grade = MAC_BIBA_TYPE_LOW; + type = MAC_BIBA_TYPE_LOW; if (trusted_interfaces[0] == '\0' || !strvalid(trusted_interfaces, sizeof(trusted_interfaces))) @@ -1161,7 +1161,7 @@ mac_biba_create_ifnet(struct ifnet *ifnet, struct label *ifnetlabel) bzero(tifname, sizeof(tifname)); bcopy(q, tifname, len); if (strcmp(tifname, ifname) == 0) { - grade = MAC_BIBA_TYPE_HIGH; + type = MAC_BIBA_TYPE_HIGH; break; } } else { @@ -1176,8 +1176,8 @@ mac_biba_create_ifnet(struct ifnet *ifnet, struct label *ifnetlabel) } } set: - mac_biba_set_single(dest, grade, 0, NULL); - mac_biba_set_range(dest, grade, 0, NULL, grade, 0, NULL); + mac_biba_set_single(dest, type, 0, NULL); + mac_biba_set_range(dest, type, 0, NULL, type, 0, NULL); } static void -- cgit v1.1