Lines Matching refs:inp
97 mac_inpcb_init(struct inpcb *inp, int flag)
101 inp->inp_label = mac_inpcb_label_alloc(flag);
102 if (inp->inp_label == NULL)
105 inp->inp_label = NULL;
164 mac_inpcb_destroy(struct inpcb *inp)
167 if (inp->inp_label != NULL) {
168 mac_inpcb_label_free(inp->inp_label);
169 inp->inp_label = NULL;
192 mac_inpcb_create(struct socket *so, struct inpcb *inp)
195 MAC_POLICY_PERFORM_NOSLEEP(inpcb_create, so, so->so_label, inp,
196 inp->inp_label);
242 mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m)
246 INP_LOCK_ASSERT(inp);
253 MAC_POLICY_PERFORM_NOSLEEP(inpcb_create_mbuf, inp, inp->inp_label, m,
366 mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m)
378 MAC_POLICY_CHECK_NOSLEEP(inpcb_check_deliver, inp, inp->inp_label, m,
380 MAC_CHECK_PROBE2(inpcb_check_deliver, error, inp, m);
389 mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp)
393 INP_LOCK_ASSERT(inp);
395 MAC_POLICY_CHECK_NOSLEEP(inpcb_check_visible, cred, inp,
396 inp->inp_label);
397 MAC_CHECK_PROBE2(inpcb_check_visible, error, cred, inp);
403 mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp)
406 INP_WLOCK_ASSERT(inp);
409 MAC_POLICY_PERFORM_NOSLEEP(inpcb_sosetlabel, so, so->so_label, inp,
410 inp->inp_label);
496 mac_syncache_create(struct label *label, struct inpcb *inp)
499 INP_LOCK_ASSERT(inp);
501 MAC_POLICY_PERFORM_NOSLEEP(syncache_create, label, inp);