Lines Matching full:pp

71 mac_pipe_init(struct pipepair *pp)  in mac_pipe_init()  argument
75 pp->pp_label = mac_pipe_label_alloc(); in mac_pipe_init()
77 pp->pp_label = NULL; in mac_pipe_init()
89 mac_pipe_destroy(struct pipepair *pp) in mac_pipe_destroy() argument
92 if (pp->pp_label != NULL) { in mac_pipe_destroy()
93 mac_pipe_label_free(pp->pp_label); in mac_pipe_destroy()
94 pp->pp_label = NULL; in mac_pipe_destroy()
127 mac_pipe_create(struct ucred *cred, struct pipepair *pp) in mac_pipe_create() argument
130 MAC_POLICY_PERFORM_NOSLEEP(pipe_create, cred, pp, pp->pp_label); in mac_pipe_create()
134 mac_pipe_relabel(struct ucred *cred, struct pipepair *pp, in mac_pipe_relabel() argument
138 MAC_POLICY_PERFORM_NOSLEEP(pipe_relabel, cred, pp, pp->pp_label, in mac_pipe_relabel()
146 mac_pipe_check_ioctl(struct ucred *cred, struct pipepair *pp, in mac_pipe_check_ioctl() argument
151 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_ioctl()
153 MAC_POLICY_CHECK_NOSLEEP(pipe_check_ioctl, cred, pp, pp->pp_label, in mac_pipe_check_ioctl()
155 MAC_CHECK_PROBE4(pipe_check_ioctl, error, cred, pp, cmd, data); in mac_pipe_check_ioctl()
164 mac_pipe_check_poll_impl(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_poll_impl() argument
168 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_poll_impl()
170 MAC_POLICY_CHECK_NOSLEEP(pipe_check_poll, cred, pp, pp->pp_label); in mac_pipe_check_poll_impl()
171 MAC_CHECK_PROBE2(pipe_check_poll, error, cred, pp); in mac_pipe_check_poll_impl()
180 mac_pipe_check_read_impl(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_read_impl() argument
184 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_read_impl()
186 MAC_POLICY_CHECK_NOSLEEP(pipe_check_read, cred, pp, pp->pp_label); in mac_pipe_check_read_impl()
187 MAC_CHECK_PROBE2(pipe_check_read, error, cred, pp); in mac_pipe_check_read_impl()
196 mac_pipe_check_relabel(struct ucred *cred, struct pipepair *pp, in mac_pipe_check_relabel() argument
201 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_relabel()
203 MAC_POLICY_CHECK_NOSLEEP(pipe_check_relabel, cred, pp, pp->pp_label, in mac_pipe_check_relabel()
205 MAC_CHECK_PROBE3(pipe_check_relabel, error, cred, pp, newlabel); in mac_pipe_check_relabel()
214 mac_pipe_check_stat(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_stat() argument
218 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_stat()
220 MAC_POLICY_CHECK_NOSLEEP(pipe_check_stat, cred, pp, pp->pp_label); in mac_pipe_check_stat()
221 MAC_CHECK_PROBE2(pipe_check_stat, error, cred, pp); in mac_pipe_check_stat()
230 mac_pipe_check_write(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_write() argument
234 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_write()
236 MAC_POLICY_CHECK_NOSLEEP(pipe_check_write, cred, pp, pp->pp_label); in mac_pipe_check_write()
237 MAC_CHECK_PROBE2(pipe_check_write, error, cred, pp); in mac_pipe_check_write()
243 mac_pipe_label_set(struct ucred *cred, struct pipepair *pp, in mac_pipe_label_set() argument
248 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_label_set()
250 error = mac_pipe_check_relabel(cred, pp, label); in mac_pipe_label_set()
254 mac_pipe_relabel(cred, pp, label); in mac_pipe_label_set()