| 2304 | } |
| 2305 | |
| 2306 | int |
| 2307 | vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, |
| 2308 | struct thread *td) |
| 2309 | { |
| 2310 | struct vnode *vp; |
| 2311 | |
| 2312 | vp = fp->f_vnode; |
| 2313 | #ifdef AUDIT |
| 2314 | vn_lock(vp, LK_SHARED | LK_RETRY); |
| 2315 | AUDIT_ARG_VNODE1(vp); |
| 2316 | VOP_UNLOCK(vp); |
| 2317 | #endif |
| 2318 | return (setfmode(td, active_cred, vp, mode)); |
| 2319 | } |
| 2320 | |
| 2321 | int |
| 2322 | vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, |
no test coverage detected