MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mls_ifnet_create

Function mls_ifnet_create

freebsd/security/mac_mls/mac_mls.c:1019–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017}
1018
1019static void
1020mls_ifnet_create(struct ifnet *ifp, struct label *ifplabel)
1021{
1022 struct mac_mls *dest;
1023 int type;
1024
1025 dest = SLOT(ifplabel);
1026
1027 if (ifp->if_type == IFT_LOOP)
1028 type = MAC_MLS_TYPE_EQUAL;
1029 else
1030 type = MAC_MLS_TYPE_LOW;
1031
1032 mls_set_effective(dest, type, 0, NULL);
1033 mls_set_range(dest, type, 0, NULL, type, 0, NULL);
1034}
1035
1036static void
1037mls_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel,

Callers

nothing calls this directly

Calls 2

mls_set_effectiveFunction · 0.85
mls_set_rangeFunction · 0.85

Tested by

no test coverage detected