| 337 | } |
| 338 | |
| 339 | void |
| 340 | mac_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 | |
| 356 | MAC_CHECK_PROBE_DEFINE2(bpfdesc_check_receive, "struct bpf_d *", |
| 357 | "struct ifnet *"); |
no test coverage detected