summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_biba
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-02-04 21:00:51 +0000
committerrwatson <rwatson@FreeBSD.org>2003-02-04 21:00:51 +0000
commit413da05130b4d0ef260322f565d8b087640ac1bb (patch)
treea01235658c9f02e5ee8611c3e69e5b66ed2a5496 /sys/security/mac_biba
parent4c186b49ac7f5646d28d1a39f9185430bd2bd10c (diff)
downloadFreeBSD-src-413da05130b4d0ef260322f565d8b087640ac1bb.zip
FreeBSD-src-413da05130b4d0ef260322f565d8b087640ac1bb.tar.gz
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
Diffstat (limited to 'sys/security/mac_biba')
-rw-r--r--sys/security/mac_biba/mac_biba.c14
1 files changed, 7 insertions, 7 deletions
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
OpenPOWER on IntegriCloud