| 145 | "struct pipepair *", "unsigned long", "void *"); |
| 146 | |
| 147 | int |
| 148 | mac_pipe_check_ioctl(struct ucred *cred, struct pipepair *pp, |
| 149 | unsigned long cmd, void *data) |
| 150 | { |
| 151 | int error; |
| 152 | |
| 153 | mtx_assert(&pp->pp_mtx, MA_OWNED); |
| 154 | |
| 155 | MAC_POLICY_CHECK_NOSLEEP(pipe_check_ioctl, cred, pp, pp->pp_label, |
| 156 | cmd, data); |
| 157 | MAC_CHECK_PROBE4(pipe_check_ioctl, error, cred, pp, cmd, data); |
| 158 | |
| 159 | return (error); |
| 160 | } |
| 161 | |
| 162 | MAC_CHECK_PROBE_DEFINE2(pipe_check_poll, "struct ucred *", |
| 163 | "struct pipepair *"); |
no test coverage detected