| 380 | "struct mbuf *"); |
| 381 | |
| 382 | int |
| 383 | mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *m) |
| 384 | { |
| 385 | struct label *label; |
| 386 | int error, locked; |
| 387 | |
| 388 | M_ASSERTPKTHDR(m); |
| 389 | |
| 390 | if (mac_policy_count == 0) |
| 391 | return (0); |
| 392 | |
| 393 | label = mac_mbuf_to_label(m); |
| 394 | |
| 395 | MAC_IFNET_LOCK(ifp, locked); |
| 396 | MAC_POLICY_CHECK_NOSLEEP(ifnet_check_transmit, ifp, ifp->if_label, m, |
| 397 | label); |
| 398 | MAC_CHECK_PROBE2(ifnet_check_transmit, error, ifp, m); |
| 399 | MAC_IFNET_UNLOCK(ifp, locked); |
| 400 | |
| 401 | return (error); |
| 402 | } |
| 403 | |
| 404 | int |
| 405 | mac_ifnet_ioctl_get(struct ucred *cred, struct ifreq *ifr, |
no test coverage detected