Lines Matching refs:cred

319 sdev_open(struct vnode **vpp, int flag, struct cred *cred, caller_context_t *ct)  in sdev_open()  argument
343 error = VOP_OPEN(&(dv->sdev_attrvp), flag, cred, ct); in sdev_open()
351 offset_t offset, struct cred *cred, caller_context_t *ct) in sdev_close() argument
369 return (VOP_CLOSE(dv->sdev_attrvp, flag, count, offset, cred, ct)); in sdev_close()
374 sdev_read(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_read() argument
394 error = VOP_READ(dv->sdev_attrvp, uio, ioflag, cred, ct); in sdev_read()
401 sdev_write(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_write() argument
421 error = VOP_WRITE(dv->sdev_attrvp, uio, ioflag, cred, ct); in sdev_write()
433 struct cred *cred, int *rvalp, caller_context_t *ct) in sdev_ioctl() argument
445 return (VOP_IOCTL(dv->sdev_attrvp, cmd, arg, flag, cred, rvalp, ct)); in sdev_ioctl()
450 struct cred *cr, caller_context_t *ct) in sdev_getattr()
483 struct cred *cred, caller_context_t *ctp) in sdev_setattr() argument
485 return (devname_setattr_func(vp, vap, flags, cred, NULL, 0)); in sdev_setattr()
490 struct cred *cr, caller_context_t *ct) in sdev_getsecattr()
515 struct cred *cr, caller_context_t *ct) in sdev_setsecattr()
563 sdev_unlocked_access(void *vdv, int mode, struct cred *cr) in sdev_unlocked_access()
580 sdev_self_access(sdev_node_t *dv, int mode, int flags, struct cred *cr, in sdev_self_access()
600 sdev_access(struct vnode *vp, int mode, int flags, struct cred *cr, in sdev_access()
619 struct pathname *pnp, int flags, struct vnode *rdir, struct cred *cred, in sdev_lookup() argument
629 if ((error = VOP_ACCESS(dvp, VEXEC, 0, cred, ct)) != 0) in sdev_lookup()
633 return (prof_lookup(dvp, nm, vpp, cred)); in sdev_lookup()
634 return (devname_lookup_func(parent, nm, vpp, cred, NULL, 0)); in sdev_lookup()
640 int mode, struct vnode **vpp, struct cred *cred, int flag, in sdev_create() argument
670 error = prof_lookup(dvp, nm, vpp, cred); in sdev_create()
701 if ((error = VOP_ACCESS(dvp, VEXEC, 0, cred, ct)) != 0) in sdev_create()
706 error = VOP_LOOKUP(dvp, nm, &vp, NULL, 0, NULL, cred, ct, NULL, NULL); in sdev_create()
717 error = VOP_ACCESS(vp, mode, 0, cred, ct); in sdev_create()
730 nm, vap, excl, mode, &avp, cred, flag, ct, vsecp); in sdev_create()
749 if ((error = VOP_ACCESS(dvp, VEXEC|VWRITE, 0, cred, ct)) != 0) { in sdev_create()
767 cred, SDEV_READY); in sdev_create()
793 sdev_remove(struct vnode *dvp, char *nm, struct cred *cred, in sdev_remove() argument
821 if ((error = sdev_self_access(parent, VEXEC, 0, cred, ct)) != 0) { in sdev_remove()
842 if ((error = sdev_self_access(parent, VWRITE, 0, cred, ct)) != 0) { in sdev_remove()
882 error = VOP_REMOVE(parent->sdev_attrvp, nm, cred, in sdev_remove()
908 struct cred *cred, caller_context_t *ct, int flags) in sdev_rename() argument
964 error = VOP_LOOKUP(odvp, onm, &ovp, NULL, 0, NULL, cred, ct, in sdev_rename()
981 error = VOP_LOOKUP(ndvp, nnm, &nvp, NULL, 0, NULL, cred, ct, in sdev_rename()
1001 if (error = VOP_GETATTR(odvp, &vattr, 0, cred, ct)) { in sdev_rename()
1010 if (error = VOP_GETATTR(ndvp, &vattr, 0, cred, ct)) { in sdev_rename()
1027 error = VOP_ACCESS(odvp, VWRITE, 0, cred, ct); in sdev_rename()
1039 error = VOP_ACCESS(ndvp, VEXEC|VWRITE, 0, cred, ct); in sdev_rename()
1071 error = sdev_rnmnode(fromparent, fromdv, toparent, &todv, nnm, cred); in sdev_rename()
1158 char *tnm, struct cred *cred, caller_context_t *ct, int flags) in sdev_symlink() argument
1181 if ((error = VOP_ACCESS(dvp, VEXEC, 0, cred, ct)) != 0) in sdev_symlink()
1186 error = VOP_LOOKUP(dvp, lnm, &vp, NULL, 0, NULL, cred, ct, NULL, NULL); in sdev_symlink()
1197 if ((error = VOP_ACCESS(dvp, VWRITE, 0, cred, ct)) != 0) in sdev_symlink()
1203 cred, SDEV_READY); in sdev_symlink()
1233 struct cred *cred, caller_context_t *ct, int flags, vsecattr_t *vsecp) in sdev_mkdir() argument
1250 return (prof_lookup(dvp, nm, vpp, cred)); in sdev_mkdir()
1255 if ((error = VOP_ACCESS(dvp, VEXEC, 0, cred, ct)) != 0) { in sdev_mkdir()
1261 error = VOP_LOOKUP(dvp, nm, &vp, NULL, 0, NULL, cred, ct, NULL, NULL); in sdev_mkdir()
1270 if ((error = VOP_ACCESS(dvp, VWRITE, 0, cred, ct)) != 0) { in sdev_mkdir()
1277 va, NULL, NULL, cred, SDEV_READY); in sdev_mkdir()
1307 sdev_rmdir(struct vnode *dvp, char *nm, struct vnode *cdir, struct cred *cred, in sdev_rmdir() argument
1331 if ((error = VOP_ACCESS(dvp, VEXEC|VWRITE, 0, cred, ct)) != 0) in sdev_rmdir()
1415 sdev_readlink(struct vnode *vp, struct uio *uiop, struct cred *cred, in sdev_readlink() argument
1427 return (VOP_READLINK(dv->sdev_attrvp, uiop, cred, ct)); in sdev_readlink()
1443 sdev_readdir(struct vnode *vp, struct uio *uiop, struct cred *cred, int *eofp, in sdev_readdir() argument
1455 if ((error = sdev_self_access(dv, VEXEC, 0, cred, ct)) != 0) in sdev_readdir()
1460 return (devname_readdir_func(vp, uiop, cred, eofp, SDEV_BROWSE)); in sdev_readdir()
1465 sdev_inactive(struct vnode *vp, struct cred *cred, caller_context_t *ct) in sdev_inactive() argument
1467 devname_inactive_func(vp, cred, NULL); in sdev_inactive()
1532 offset_t offset, struct flk_callback *flk_cbp, struct cred *cr, in sdev_frlock()