| 320 | } |
| 321 | |
| 322 | void |
| 323 | mac_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 | |
| 339 | void |
| 340 | mac_ifnet_create_mbuf(struct ifnet *ifp, struct mbuf *m) |
no test coverage detected