| 179 | "struct pipepair *"); |
| 180 | |
| 181 | int |
| 182 | mac_pipe_check_read(struct ucred *cred, struct pipepair *pp) |
| 183 | { |
| 184 | int error; |
| 185 | |
| 186 | mtx_assert(&pp->pp_mtx, MA_OWNED); |
| 187 | |
| 188 | MAC_POLICY_CHECK_NOSLEEP(pipe_check_read, cred, pp, pp->pp_label); |
| 189 | MAC_CHECK_PROBE2(pipe_check_read, error, cred, pp); |
| 190 | |
| 191 | return (error); |
| 192 | } |
| 193 | |
| 194 | MAC_CHECK_PROBE_DEFINE3(pipe_check_relabel, "struct ucred *", |
| 195 | "struct pipepair *", "struct label *"); |
no test coverage detected