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

Function mac_ifnet_create_mbuf

freebsd/security/mac/mac_net.c:339–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void
340mac_ifnet_create_mbuf(struct ifnet *ifp, struct mbuf *m)
341{
342 struct label *label;
343 int locked;
344
345 if (mac_policy_count == 0)
346 return;
347
348 label = mac_mbuf_to_label(m);
349
350 MAC_IFNET_LOCK(ifp, locked);
351 MAC_POLICY_PERFORM_NOSLEEP(ifnet_create_mbuf, ifp, ifp->if_label, m,
352 label);
353 MAC_IFNET_UNLOCK(ifp, locked);
354}
355
356MAC_CHECK_PROBE_DEFINE2(bpfdesc_check_receive, "struct bpf_d *",
357 "struct ifnet *");

Callers 9

in_stf_inputFunction · 0.85
if_gre.cFile · 0.85
ether_input_internalFunction · 0.85
firewire_inputFunction · 0.85
me_inputFunction · 0.85
gif_inputFunction · 0.85
tunwriteFunction · 0.85
if_simloopFunction · 0.85
infiniband_inputFunction · 0.85

Calls 1

mac_mbuf_to_labelFunction · 0.85

Tested by

no test coverage detected