| 377 | "struct inpcb *"); |
| 378 | |
| 379 | int |
| 380 | mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp) |
| 381 | { |
| 382 | int error; |
| 383 | |
| 384 | INP_LOCK_ASSERT(inp); |
| 385 | |
| 386 | MAC_POLICY_CHECK_NOSLEEP(inpcb_check_visible, cred, inp, |
| 387 | inp->inp_label); |
| 388 | MAC_CHECK_PROBE2(inpcb_check_visible, error, cred, inp); |
| 389 | |
| 390 | return (error); |
| 391 | } |
| 392 | |
| 393 | void |
| 394 | mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp) |