| 289 | } |
| 290 | |
| 291 | static int |
| 292 | soo_poll(struct file *fp, int events, struct ucred *active_cred, |
| 293 | struct thread *td) |
| 294 | { |
| 295 | struct socket *so = fp->f_data; |
| 296 | #ifdef MAC |
| 297 | int error; |
| 298 | |
| 299 | error = mac_socket_check_poll(active_cred, so); |
| 300 | if (error) |
| 301 | return (error); |
| 302 | #endif |
| 303 | return (sopoll(so, events, fp->f_cred, td)); |
| 304 | } |
| 305 | |
| 306 | static int |
| 307 | soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, |
nothing calls this directly
no test coverage detected