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