Lines Matching refs:cred

174 nfsvno_getattr(struct vnode *vp, struct nfsvattr *nvap, struct ucred *cred,
190 error = VOP_GETATTR(vp, &nvap->na_vattr, cred);
225 nfsvno_accchk(struct vnode *vp, accmode_t accmode, struct ucred *cred,
273 error = VOP_ACCESSX(vp, accmode, cred, p);
279 error = VOP_ACCESSX(vp, accmode | VEXPLICIT_DENY, cred, p);
284 error = VOP_ACCESSX(vp, accmode, cred, p);
297 if (cred->cr_uid == 0 && (override & NFSACCCHK_ALLOWROOT))
300 getret = VOP_GETATTR(vp, &vattr, cred);
301 if (getret == 0 && cred->cr_uid == vattr.va_uid)
317 nfsvno_setattr(struct vnode *vp, struct nfsvattr *nvap, struct ucred *cred,
322 error = VOP_SETATTR(vp, &nvap->na_vattr, cred);
561 nfsvno_readlink(struct vnode *vp, struct ucred *cred, struct thread *p,
600 error = VOP_READLINK(vp, uiop, cred);
624 nfsvno_read(struct vnode *vp, off_t off, int cnt, struct ucred *cred,
683 error = VOP_READ(vp, uiop, IO_NODELOCKED | ioflag, cred);
712 struct mbuf *mp, char *cp, struct ucred *cred, struct thread *p)
755 error = VOP_WRITE(vp, uiop, ioflags, cred);
864 nfsvno_mknod(struct nameidata *ndp, struct nfsvattr *nvap, struct ucred *cred,
897 (error = priv_check_cred(cred, PRIV_VFS_MKNOD_DEV, 0))) {
924 struct ucred *cred, struct thread *p, struct nfsexstuff *exp)
953 int pathlen, int not_v2, uid_t saved_uid, struct ucred *cred, struct thread *p,
1039 nfsvno_removesub(struct nameidata *ndp, int is_v4, struct ucred *cred,
1067 nfsvno_rmdirsub(struct nameidata *ndp, int is_v4, struct ucred *cred,
1109 u_int32_t ndstat, u_int32_t ndflag, struct ucred *cred, struct thread *p)
1218 nfsvno_link(struct nameidata *ndp, struct vnode *vp, struct ucred *cred,
1260 nfsvno_fsync(struct vnode *vp, u_int64_t off, int cnt, struct ucred *cred,
1391 NFSACL_T *aclp, nfsattrbit_t *attrbitp, struct ucred *cred, struct thread *p,
1415 &nvap->na_vattr, cred);
1439 VWRITE, cred, &nes, p,
1449 &nvap->na_vattr, cred);
1482 struct ucred *cred, struct thread *p)
1493 (void) VOP_SETATTR(vp, &va, cred);
1494 (void) nfsvno_getattr(vp, nvap, cred, p, 1);
1504 struct ucred *cred, struct thread *p, int isdgram, int reterr,
1510 attrbitp, cred, p, isdgram, reterr, supports_nfsv4acls, at_root,
2725 * - if cred->cr_uid == 0 or MNT_EXPORTANON set it to credanon
2855 nfsrv_v4rootexport(void *argp, struct ucred *cred, struct thread *p)
3098 nfssvc_srvcall(struct thread *p, struct nfssvc_args *uap, struct ucred *cred)
3125 error = nfsrv_v4rootexport(&export, cred, p);