MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vn_chmod

Function vn_chmod

freebsd/kern/vfs_vnops.c:2306–2319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2304}
2305
2306int
2307vn_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
2321int
2322vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,

Callers 1

pipe_chmodFunction · 0.85

Calls 2

vn_lockFunction · 0.85
setfmodeFunction · 0.85

Tested by

no test coverage detected