Lines Matching refs:inp
99 mac_inpcb_init(struct inpcb *inp, int flag)
103 inp->inp_label = mac_inpcb_label_alloc(flag);
104 if (inp->inp_label == NULL)
107 inp->inp_label = NULL;
155 mac_inpcb_destroy(struct inpcb *inp)
158 if (inp->inp_label != NULL) {
159 mac_inpcb_label_free(inp->inp_label);
160 inp->inp_label = NULL;
183 mac_inpcb_create(struct socket *so, struct inpcb *inp)
186 MAC_POLICY_PERFORM_NOSLEEP(inpcb_create, so, so->so_label, inp,
187 inp->inp_label);
233 mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m)
237 INP_LOCK_ASSERT(inp);
244 MAC_POLICY_PERFORM_NOSLEEP(inpcb_create_mbuf, inp, inp->inp_label, m,
355 mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m)
367 MAC_POLICY_CHECK_NOSLEEP(inpcb_check_deliver, inp, inp->inp_label, m,
369 MAC_CHECK_PROBE2(inpcb_check_deliver, error, inp, m);
378 mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp)
382 INP_LOCK_ASSERT(inp);
384 MAC_POLICY_CHECK_NOSLEEP(inpcb_check_visible, cred, inp,
385 inp->inp_label);
386 MAC_CHECK_PROBE2(inpcb_check_visible, error, cred, inp);
392 mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp)
395 INP_WLOCK_ASSERT(inp);
398 MAC_POLICY_PERFORM_NOSLEEP(inpcb_sosetlabel, so, so->so_label, inp,
399 inp->inp_label);
485 mac_syncache_create(struct label *label, struct inpcb *inp)
488 INP_WLOCK_ASSERT(inp);
490 MAC_POLICY_PERFORM_NOSLEEP(syncache_create, label, inp);