Changeset View
Changeset View
Standalone View
Standalone View
sys/security/mac/mac_inet.c
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | mac_netinet_arp_send(struct ifnet *ifp, struct mbuf *m) | ||||
int locked; | int locked; | ||||
if (mac_policy_count == 0) | if (mac_policy_count == 0) | ||||
return; | return; | ||||
mlabel = mac_mbuf_to_label(m); | mlabel = mac_mbuf_to_label(m); | ||||
MAC_IFNET_LOCK(ifp, locked); | MAC_IFNET_LOCK(ifp, locked); | ||||
MAC_POLICY_PERFORM_NOSLEEP(netinet_arp_send, ifp, ifp->if_label, m, | MAC_POLICY_PERFORM_NOSLEEP(netinet_arp_send, ifp, if_getmaclabel(ifp), | ||||
mlabel); | m, mlabel); | ||||
MAC_IFNET_UNLOCK(ifp, locked); | MAC_IFNET_UNLOCK(ifp, locked); | ||||
} | } | ||||
void | void | ||||
mac_netinet_icmp_reply(struct mbuf *mrecv, struct mbuf *msend) | mac_netinet_icmp_reply(struct mbuf *mrecv, struct mbuf *msend) | ||||
{ | { | ||||
struct label *mrecvlabel, *msendlabel; | struct label *mrecvlabel, *msendlabel; | ||||
Show All 27 Lines | mac_netinet_igmp_send(struct ifnet *ifp, struct mbuf *m) | ||||
int locked; | int locked; | ||||
if (mac_policy_count == 0) | if (mac_policy_count == 0) | ||||
return; | return; | ||||
mlabel = mac_mbuf_to_label(m); | mlabel = mac_mbuf_to_label(m); | ||||
MAC_IFNET_LOCK(ifp, locked); | MAC_IFNET_LOCK(ifp, locked); | ||||
MAC_POLICY_PERFORM_NOSLEEP(netinet_igmp_send, ifp, ifp->if_label, m, | MAC_POLICY_PERFORM_NOSLEEP(netinet_igmp_send, ifp, if_getmaclabel(ifp), | ||||
mlabel); | m, mlabel); | ||||
MAC_IFNET_UNLOCK(ifp, locked); | MAC_IFNET_UNLOCK(ifp, locked); | ||||
} | } | ||||
void | void | ||||
mac_netinet_tcp_reply(struct mbuf *m) | mac_netinet_tcp_reply(struct mbuf *m) | ||||
{ | { | ||||
struct label *label; | struct label *label; | ||||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |