Lines Matching refs:crp
203 nm_umountall(vnode_t *vp, cred_t *crp) in nm_umountall() argument
247 if ((error = dounmount(vfsp, 0, crp)) != 0) in nm_umountall()
273 nm_unmountall(vnode_t *vp, cred_t *crp) in nm_unmountall() argument
284 error = nm_umountall(vp, crp); in nm_unmountall()
306 nm_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *crp) in nm_mount() argument
379 if (secpolicy_fs_mount(crp, filevp, vfsp) != 0) { in nm_mount()
402 if (error = VOP_GETATTR(mvp, vattrp, 0, crp, NULL)) in nm_mount()
406 if (error = VOP_GETATTR(filevp, &filevattr, 0, crp, NULL)) in nm_mount()
412 if (error = secpolicy_vnode_owner(crp, vattrp->va_uid)) in nm_mount()
419 if (secpolicy_vnode_access2(crp, mvp, vattrp->va_uid, vattrp->va_mode, in nm_mount()
555 nm_unmount(vfs_t *vfsp, int flag, cred_t *crp) in nm_unmount() argument
573 if (secpolicy_vnode_owner(crp, nodep->nm_vattr.va_uid) != 0) { in nm_unmount()
647 nm_sync(vfs_t *vfsp, short flag, cred_t *crp) in nm_sync() argument
656 return (nm_umountall(nodep->nm_filevp, crp)); in nm_sync()
658 return (VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, NULL)); in nm_sync()