| 259 | } |
| 260 | |
| 261 | void |
| 262 | mac_socketpeer_set_from_mbuf(struct mbuf *m, struct socket *so) |
| 263 | { |
| 264 | struct label *label; |
| 265 | |
| 266 | if (mac_policy_count == 0) |
| 267 | return; |
| 268 | |
| 269 | label = mac_mbuf_to_label(m); |
| 270 | |
| 271 | MAC_POLICY_PERFORM_NOSLEEP(socketpeer_set_from_mbuf, m, label, so, |
| 272 | so->so_peerlabel); |
| 273 | } |
| 274 | |
| 275 | void |
| 276 | mac_socketpeer_set_from_socket(struct socket *oldso, struct socket *newso) |
no test coverage detected