Lines Matching refs:inp
100 mac_inpcb_init(struct inpcb *inp, int flag)
104 inp->inp_label = mac_inpcb_label_alloc(flag);
105 if (inp->inp_label == NULL)
108 inp->inp_label = NULL;
156 mac_inpcb_destroy(struct inpcb *inp)
159 if (inp->inp_label != NULL) {
160 mac_inpcb_label_free(inp->inp_label);
161 inp->inp_label = NULL;
184 mac_inpcb_create(struct socket *so, struct inpcb *inp)
187 MAC_POLICY_PERFORM_NOSLEEP(inpcb_create, so, so->so_label, inp,
188 inp->inp_label);
234 mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m)
238 INP_LOCK_ASSERT(inp);
245 MAC_POLICY_PERFORM_NOSLEEP(inpcb_create_mbuf, inp, inp->inp_label, m,
356 mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m)
368 MAC_POLICY_CHECK_NOSLEEP(inpcb_check_deliver, inp, inp->inp_label, m,
370 MAC_CHECK_PROBE2(inpcb_check_deliver, error, inp, m);
379 mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp)
383 INP_LOCK_ASSERT(inp);
385 MAC_POLICY_CHECK_NOSLEEP(inpcb_check_visible, cred, inp,
386 inp->inp_label);
387 MAC_CHECK_PROBE2(inpcb_check_visible, error, cred, inp);
393 mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp)
396 INP_WLOCK_ASSERT(inp);
399 MAC_POLICY_PERFORM_NOSLEEP(inpcb_sosetlabel, so, so->so_label, inp,
400 inp->inp_label);
486 mac_syncache_create(struct label *label, struct inpcb *inp)
489 INP_WLOCK_ASSERT(inp);
491 MAC_POLICY_PERFORM_NOSLEEP(syncache_create, label, inp);