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

Function mac_bpfdesc_create_mbuf

freebsd/security/mac/mac_net.c:322–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void
323mac_bpfdesc_create_mbuf(struct bpf_d *d, struct mbuf *m)
324{
325 struct label *label;
326
327 /* Assume reader lock is enough. */
328 BPFD_LOCK_ASSERT(d);
329
330 if (mac_policy_count == 0)
331 return;
332
333 label = mac_mbuf_to_label(m);
334
335 MAC_POLICY_PERFORM_NOSLEEP(bpfdesc_create_mbuf, d, d->bd_label, m,
336 label);
337}
338
339void
340mac_ifnet_create_mbuf(struct ifnet *ifp, struct mbuf *m)

Callers 1

bpfwriteFunction · 0.85

Calls 1

mac_mbuf_to_labelFunction · 0.85

Tested by

no test coverage detected