Changeset View
Changeset View
Standalone View
Standalone View
sys/security/mac_mls/mac_mls.c
Show First 20 Lines • Show All 1,018 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
mls_ifnet_create(struct ifnet *ifp, struct label *ifplabel) | mls_ifnet_create(struct ifnet *ifp, struct label *ifplabel) | ||||
{ | { | ||||
struct mac_mls *dest; | struct mac_mls *dest; | ||||
int type; | int type; | ||||
dest = SLOT(ifplabel); | dest = SLOT(ifplabel); | ||||
if (ifp->if_type == IFT_LOOP) | if (if_gettype(ifp) == IFT_LOOP) | ||||
type = MAC_MLS_TYPE_EQUAL; | type = MAC_MLS_TYPE_EQUAL; | ||||
else | else | ||||
type = MAC_MLS_TYPE_LOW; | type = MAC_MLS_TYPE_LOW; | ||||
mls_set_effective(dest, type, 0, NULL); | mls_set_effective(dest, type, 0, NULL); | ||||
mls_set_range(dest, type, 0, NULL, type, 0, NULL); | mls_set_range(dest, type, 0, NULL, type, 0, NULL); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,388 Lines • Show Last 20 Lines |