Lines Matching defs:crp
77 nm_open(vnode_t **vpp, int flag, cred_t *crp, caller_context_t *ct)
95 if ((error = VOP_OPEN(&outfilevp, flag, crp, ct)) != 0) {
163 nm_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *crp,
171 error = VOP_CLOSE(nodep->nm_filevp, flag, count, offset, crp, ct);
173 (void) VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, ct);
192 nm_read(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *crp,
195 return (VOP_READ(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct));
199 nm_write(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *crp,
202 return (VOP_WRITE(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct));
218 nm_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *crp,
230 if (error = VOP_GETATTR(nodep->nm_filevp, &va, flags, crp, ct))
243 nm_access_unlocked(void *vnp, int mode, cred_t *crp)
248 if (crgetuid(crp) != nodep->nm_vattr.va_uid) {
250 if (!groupmember(nodep->nm_vattr.va_gid, crp))
254 return (secpolicy_vnode_access2(crp, NMTOV(nodep),
267 cred_t *crp,
289 error = secpolicy_vnode_setattr(crp, vp, vap, nmvap, flags,
336 nm_access(vnode_t *vp, int mode, int flags, cred_t *crp,
343 error = nm_access_unlocked(nodep, mode, crp);
346 return (VOP_ACCESS(nodep->nm_filevp, mode, flags, crp, ct));
379 nm_link(vnode_t *tdvp, vnode_t *vp, char *tnm, cred_t *crp,
386 nm_fsync(vnode_t *vp, int syncflag, cred_t *crp, caller_context_t *ct)
388 return (VOP_FSYNC(VTONM(vp)->nm_filevp, syncflag, crp, ct));
394 nm_inactive(vnode_t *vp, cred_t *crp, caller_context_t *ct)