Lines Matching defs:vp
62 static int vacl_set_acl(struct thread *td, struct vnode *vp,
64 static int vacl_get_acl(struct thread *td, struct vnode *vp,
66 static int vacl_aclcheck(struct thread *td, struct vnode *vp,
208 vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type,
219 error = vn_start_write(vp, &mp, V_WAIT | PCATCH);
222 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
224 error = mac_vnode_check_setacl(td->td_ucred, vp, type, inkernelacl);
228 error = VOP_SETACL(vp, acl_type_unold(type), inkernelacl,
233 VOP_UNLOCK(vp, 0);
244 vacl_get_acl(struct thread *td, struct vnode *vp, acl_type_t type,
251 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
253 error = mac_vnode_check_getacl(td->td_ucred, vp, type);
257 error = VOP_GETACL(vp, acl_type_unold(type), inkernelacl,
263 VOP_UNLOCK(vp, 0);
274 vacl_delete(struct thread *td, struct vnode *vp, acl_type_t type)
279 error = vn_start_write(vp, &mp, V_WAIT | PCATCH);
282 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
284 error = mac_vnode_check_deleteacl(td->td_ucred, vp, type);
288 error = VOP_SETACL(vp, acl_type_unold(type), 0, td->td_ucred, td);
292 VOP_UNLOCK(vp, 0);
301 vacl_aclcheck(struct thread *td, struct vnode *vp, acl_type_t type,
311 error = VOP_ACLCHECK(vp, acl_type_unold(type), inkernelacl,