Lines Matching refs:pp

73 mac_pipe_init(struct pipepair *pp)  in mac_pipe_init()  argument
77 pp->pp_label = mac_pipe_label_alloc(); in mac_pipe_init()
79 pp->pp_label = NULL; in mac_pipe_init()
91 mac_pipe_destroy(struct pipepair *pp) in mac_pipe_destroy() argument
94 if (pp->pp_label != NULL) { in mac_pipe_destroy()
95 mac_pipe_label_free(pp->pp_label); in mac_pipe_destroy()
96 pp->pp_label = NULL; in mac_pipe_destroy()
129 mac_pipe_create(struct ucred *cred, struct pipepair *pp) in mac_pipe_create() argument
132 MAC_POLICY_PERFORM_NOSLEEP(pipe_create, cred, pp, pp->pp_label); in mac_pipe_create()
136 mac_pipe_relabel(struct ucred *cred, struct pipepair *pp, in mac_pipe_relabel() argument
140 MAC_POLICY_PERFORM_NOSLEEP(pipe_relabel, cred, pp, pp->pp_label, in mac_pipe_relabel()
148 mac_pipe_check_ioctl(struct ucred *cred, struct pipepair *pp, in mac_pipe_check_ioctl() argument
153 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_ioctl()
155 MAC_POLICY_CHECK_NOSLEEP(pipe_check_ioctl, cred, pp, pp->pp_label, in mac_pipe_check_ioctl()
157 MAC_CHECK_PROBE4(pipe_check_ioctl, error, cred, pp, cmd, data); in mac_pipe_check_ioctl()
166 mac_pipe_check_poll_impl(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_poll_impl() argument
170 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_poll_impl()
172 MAC_POLICY_CHECK_NOSLEEP(pipe_check_poll, cred, pp, pp->pp_label); in mac_pipe_check_poll_impl()
173 MAC_CHECK_PROBE2(pipe_check_poll, error, cred, pp); in mac_pipe_check_poll_impl()
182 mac_pipe_check_read(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_read() argument
186 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_read()
188 MAC_POLICY_CHECK_NOSLEEP(pipe_check_read, cred, pp, pp->pp_label); in mac_pipe_check_read()
189 MAC_CHECK_PROBE2(pipe_check_read, error, cred, pp); in mac_pipe_check_read()
198 mac_pipe_check_relabel(struct ucred *cred, struct pipepair *pp, in mac_pipe_check_relabel() argument
203 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_relabel()
205 MAC_POLICY_CHECK_NOSLEEP(pipe_check_relabel, cred, pp, pp->pp_label, in mac_pipe_check_relabel()
207 MAC_CHECK_PROBE3(pipe_check_relabel, error, cred, pp, newlabel); in mac_pipe_check_relabel()
216 mac_pipe_check_stat(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_stat() argument
220 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_stat()
222 MAC_POLICY_CHECK_NOSLEEP(pipe_check_stat, cred, pp, pp->pp_label); in mac_pipe_check_stat()
223 MAC_CHECK_PROBE2(pipe_check_stat, error, cred, pp); in mac_pipe_check_stat()
232 mac_pipe_check_write(struct ucred *cred, struct pipepair *pp) in mac_pipe_check_write() argument
236 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_check_write()
238 MAC_POLICY_CHECK_NOSLEEP(pipe_check_write, cred, pp, pp->pp_label); in mac_pipe_check_write()
239 MAC_CHECK_PROBE2(pipe_check_write, error, cred, pp); in mac_pipe_check_write()
245 mac_pipe_label_set(struct ucred *cred, struct pipepair *pp, in mac_pipe_label_set() argument
250 mtx_assert(&pp->pp_mtx, MA_OWNED); in mac_pipe_label_set()
252 error = mac_pipe_check_relabel(cred, pp, label); in mac_pipe_label_set()
256 mac_pipe_relabel(cred, pp, label); in mac_pipe_label_set()