| 1563 | } |
| 1564 | |
| 1565 | static int |
| 1566 | pipe_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, |
| 1567 | struct thread *td) |
| 1568 | { |
| 1569 | struct pipe *cpipe; |
| 1570 | int error; |
| 1571 | |
| 1572 | cpipe = fp->f_data; |
| 1573 | if (cpipe->pipe_type & PIPE_TYPE_NAMED) |
| 1574 | error = vn_chown(fp, uid, gid, active_cred, td); |
| 1575 | else |
| 1576 | error = invfo_chown(fp, uid, gid, active_cred, td); |
| 1577 | return (error); |
| 1578 | } |
| 1579 | |
| 1580 | static int |
| 1581 | pipe_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) |
nothing calls this directly
no test coverage detected