Home
last modified time | relevance | path

Searched refs:crp (Results 1 – 25 of 60) sorted by relevance

123

/titanic_44/usr/src/uts/common/fs/namefs/
H A Dnamevno.c77 nm_open(vnode_t **vpp, int flag, cred_t *crp, caller_context_t *ct) in nm_open() argument
95 if ((error = VOP_OPEN(&outfilevp, flag, crp, ct)) != 0) { in nm_open()
163 nm_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *crp, in nm_close() argument
171 error = VOP_CLOSE(nodep->nm_filevp, flag, count, offset, crp, ct); in nm_close()
173 (void) VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, ct); in nm_close()
192 nm_read(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *crp, in nm_read() argument
195 return (VOP_READ(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct)); in nm_read()
199 nm_write(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *crp, in nm_write() argument
202 return (VOP_WRITE(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct)); in nm_write()
218 nm_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *crp, in nm_getattr() argument
[all …]
H A Dnamevfs.c203 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()
[all …]
/titanic_44/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cfgrom.c65 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; in av1394_cfgrom_init() local
70 rw_init(&crp->cr_rwlock, NULL, RW_DRIVER, ibc); in av1394_cfgrom_init()
79 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; in av1394_cfgrom_fini() local
83 rw_destroy(&crp->cr_rwlock); in av1394_cfgrom_fini()
91 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; in av1394_cfgrom_close() local
95 rw_enter(&crp->cr_rwlock, RW_WRITER); in av1394_cfgrom_close()
96 if (crp->cr_parsed) { in av1394_cfgrom_close()
99 rw_exit(&crp->cr_rwlock); in av1394_cfgrom_close()
170 av1394_cfgrom_t *crp = &avp->av_a.a_cfgrom; in av1394_ioctl_node_get_text_leaf() local
212 rw_enter(&crp->cr_rwlock, RW_WRITER); in av1394_ioctl_node_get_text_leaf()
[all …]
/titanic_44/usr/src/uts/common/fs/fifofs/
H A Dfifovnops.c174 tsol_fifo_access(vnode_t *vp, int flag, cred_t *crp) in tsol_fifo_access() argument
183 proc_zone = crgetzone(crp); in tsol_fifo_access()
220 fifo_open(vnode_t **vpp, int flag, cred_t *crp, caller_context_t *ct) in fifo_open() argument
230 if (!tsol_fifo_access(vp, flag, crp)) in fifo_open()
260 error = fifo_stropen(vpp, flag, crp, 1, 1); in fifo_open()
364 (void) fifo_close(*vpp, flag, 1, 0, crp, ct); in fifo_open()
384 (void) fifo_close(*vpp, flag, 1, 0, crp, ct); in fifo_open()
402 (void) fifo_close(*vpp, flag, 1, 0, crp, ct); in fifo_open()
435 fifo_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *crp, in fifo_close() argument
583 (void) strclose(vp, flag, crp); in fifo_close()
[all …]
H A Dfifosubr.c407 fifovp(vnode_t *vp, cred_t *crp) in fifovp() argument
452 if (VOP_GETATTR(vp, &va, 0, crp, NULL) == 0) { in fifovp()
586 fifo_stropen(vnode_t **vpp, int flag, cred_t *crp, int dotwist, int lockheld) in fifo_stropen() argument
650 if ((error = stropen(oldvp, &pdev, flag, crp)) != 0) { in fifo_stropen()
681 if (error = fifo_connld(vpp, flag, crp)) { in fifo_stropen()
682 (void) fifo_close(oldvp, flag, 1, 0, crp, NULL); in fifo_stropen()
693 (void) fifo_close(oldvp, flag, 1, 0, crp, NULL); in fifo_stropen()
721 if ((error = stropen(oldvp, &pdev, flag, crp)) != 0) { in fifo_stropen()
899 fifo_connld(struct vnode **vpp, int flag, cred_t *crp) in fifo_connld() argument
981 crhold(VTOF(vp1)->fn_pcredp = crp); in fifo_connld()
[all …]
/titanic_44/usr/src/lib/libnsl/rpc/
H A Dpmap_prot.c219 xdr_rmtcallres(XDR *xdrs, struct p_rmtcallres *crp) in xdr_rmtcallres() argument
221 if (xdr_u_int(xdrs, (uint_t *)&crp->port) && in xdr_rmtcallres()
222 xdr_u_int(xdrs, &crp->res.res_len)) in xdr_rmtcallres()
223 return ((*(crp->xdr_res))(xdrs, crp->res.res_val)); in xdr_rmtcallres()
/titanic_44/usr/src/uts/common/io/
H A Dclone.c59 int clnopen(queue_t *rq, dev_t *devp, int flag, int sflag, cred_t *crp);
163 clnopen(queue_t *rq, dev_t *devp, int flag, int sflag, cred_t *crp) in clnopen() argument
227 error = secpolicy_spec_open(crp, vp, flag); in clnopen()
281 error = (*rq->q_qinfo->qi_qopen)(rq, &newdev, flag, CLONEOPEN, crp); in clnopen()
295 (*rq->q_qinfo->qi_qclose)(rq, flag, crp); in clnopen()
H A Dpipemod.c49 pipeopen(queue_t *rqp, dev_t *devp, int flag, int sflag, cred_t *crp) in pipeopen() argument
57 pipeclose(queue_t *q, int cflag, cred_t *crp) in pipeclose() argument
H A Ddrcompat.c183 dropen(queue_t *q, dev_t *devp, int oflag, int sflag, cred_t *crp) in dropen() argument
191 if (secpolicy_net_rawaccess(crp) != 0) { in dropen()
210 drclose(queue_t *q, int cflag, cred_t *crp) in drclose() argument
H A Dconnld.c150 connopen(queue_t *rqp, dev_t *devp, int flag, int sflag, cred_t *crp) in connopen() argument
197 connclose(queue_t *q, int cflag, cred_t *crp) in connclose() argument
H A Ddedump.c221 dedumpopen(queue_t *q, dev_t *devp, int oflag, int sflag, cred_t *crp) in dedumpopen() argument
235 dedumpclose(queue_t *q, int flag, cred_t *crp) in dedumpclose() argument
/titanic_44/usr/src/uts/common/io/sbp2/
H A Dcfgrom.c81 sbp2_cfgrom_parse(sbp2_tgt_t *tp, sbp2_cfgrom_t *crp) in sbp2_cfgrom_parse() argument
83 sbp2_cfgrom_ent_t *root_dir = &crp->cr_root; in sbp2_cfgrom_parse()
84 sbp2_cfgrom_bib_t *bib = &crp->cr_bib; in sbp2_cfgrom_parse()
108 sbp2_cfgrom_free(tp, crp); in sbp2_cfgrom_parse()
364 sbp2_cfgrom_free(sbp2_tgt_t *tp, sbp2_cfgrom_t *crp) in sbp2_cfgrom_free() argument
366 sbp2_cfgrom_free_bib(tp, &crp->cr_bib); in sbp2_cfgrom_free()
367 sbp2_cfgrom_walk_free(&crp->cr_root); in sbp2_cfgrom_free()
/titanic_44/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_disk.c128 nsc_uread(nsc_fd_t *fd, void *uiop, void *crp) in nsc_uread() argument
130 return (*fd->sf_aio->uread)(fd->sf_cd, uiop, crp, fd); in nsc_uread()
135 nsc_uwrite(nsc_fd_t *fd, void *uiop, void *crp) in nsc_uwrite() argument
140 return (*fd->sf_aio->uwrite)(fd->sf_cd, uiop, crp, fd); in nsc_uwrite()
169 _nsc_uread(dev_t dev, uio_t *uiop, cred_t *crp, nsc_fd_t *fd) in _nsc_uread() argument
178 _nsc_uwrite(dev_t dev, uio_t *uiop, cred_t *crp, nsc_fd_t *fd) in _nsc_uwrite() argument
457 cred_t *crp = NULL; in _nsc_dbuf_io() local
483 crp = ddi_get_cred(); in _nsc_dbuf_io()
544 rc = (*iofn)(h->db_fd, &h->db_uio, crp); in _nsc_dbuf_io()
H A Dnsctl.c477 nscopen(dev_t *devp, int flag, int otyp, cred_t *crp) in nscopen() argument
482 if (error = drv_priv(crp)) in nscopen()
576 nscclose(dev_t dev, int flag, int otyp, cred_t *crp) in nscclose() argument
603 nscread(dev_t dev, uio_t *uiop, cred_t *crp) in nscread() argument
621 rc = nsc_uread(fd, uiop, crp); in nscread()
634 nscwrite(dev_t dev, uio_t *uiop, cred_t *crp) in nscwrite() argument
652 rc = nsc_uwrite(fd, uiop, crp); in nscwrite()
757 nscioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) in nscioctl() argument
/titanic_44/usr/src/uts/common/avs/ns/sv/
H A Dsv.c859 cred_t *crp = ddi_get_cred(); in sv_free() local
866 (void) ldi_close(svp->sv_lh, FREAD|FWRITE, crp); in sv_free()
911 cred_t *crp; in sv_enable() local
970 crp = ddi_get_cred(); in sv_enable()
975 OTYP_BLK, FREAD|FWRITE, crp, &svp->sv_lh, li); in sv_enable()
1196 sv_lyr_open(dev_t *devp, int flag, int otyp, cred_t *crp) in sv_lyr_open() argument
1230 ret = (*fn)(devp, flag, otyp, crp); in sv_lyr_open()
1233 ret = (*fn)(devp, flag, otyp, crp); in sv_lyr_open()
1310 sv_lyr_close(dev_t dev, int flag, int otyp, cred_t *crp) in sv_lyr_close() argument
1361 ret = (*fn)(dev, flag, otyp, crp); in sv_lyr_close()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Dstreamio.c194 int anchor, cred_t *crp, uint_t anchor_zoneid) in push_mod() argument
215 if ((error = qattach(qp, devp, 0, crp, fp, B_FALSE)) != 0) in push_mod()
236 stropen(vnode_t *vp, dev_t *devp, int flag, cred_t *crp) in stropen() argument
349 if ((error = qreopen(_RD(qp), devp, flag, crp)) != 0) in stropen()
442 if ((error = qattach(qp, devp, flag, crp, NULL, B_FALSE)) != 0) { in stropen()
473 if (push_mod(qp, &dummydev, stp, DRMODNAME, 0, crp, 0) != 0) in stropen()
500 zoneid = crgetzoneid(crp); in stropen()
503 dlap.dap_aplist[s], dlap.dap_anchor, crp, in stropen()
530 zoneid = crgetzoneid(crp); in stropen()
537 zoneid = crgetzoneid(crp); in stropen()
[all …]
H A Dsession.c274 cred_t *crp; in sess_ctty_set() local
282 crhold(crp = p->p_cred); in sess_ctty_set()
290 sp->s_cred = crp; in sess_ctty_set()
/titanic_44/usr/src/cmd/lp/cmd/lpsched/
H A Ddisp1.c654 RSTATUS *crp; in _cancel() local
676 crp = rp; in _cancel()
679 if (*s_dest && !STREQU(s_dest, crp->request->destination)) in _cancel()
682 if (current && !(crp->request->outcome & RS_PRINTING)) in _cancel()
686 !STREQU(s_req_id, crp->secure->req_id)) in _cancel()
689 if (*s_user && !bangequ(s_user, crp->secure->user)) in _cancel()
692 if (!md->admin && md->uid != crp->secure->uid) { in _cancel()
694 return (Strdup(crp->secure->req_id)); in _cancel()
703 (md->slabel != NULL) && (crp->secure->slabel != NULL) && in _cancel()
704 (!STREQU(md->slabel, crp->secure->slabel))) in _cancel()
[all …]
/titanic_44/usr/src/stand/lib/fs/nfs/
H A Dpmap.c263 xdr_rmtcallres(XDR *xdrs, struct rmtcallres *crp) in xdr_rmtcallres() argument
267 port_ptr = (caddr_t)crp->port_ptr; in xdr_rmtcallres()
269 xdr_u_int(xdrs, &crp->resultslen)) { in xdr_rmtcallres()
270 crp->port_ptr = (rpcport_t *)port_ptr; in xdr_rmtcallres()
271 return ((*(crp->xdr_results))(xdrs, crp->results_ptr)); in xdr_rmtcallres()
/titanic_44/usr/src/uts/common/avs/ns/dsw/
H A Ddsw.c57 static int iiopen(dev_t *devp, int flag, int otyp, cred_t *crp);
58 static int iiclose(dev_t dev, int flag, int otyp, cred_t *crp);
60 static int iiioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp,
457 iiopen(dev_t *devp, int flag, int otyp, cred_t *crp) in iiopen() argument
461 error = drv_priv(crp); in iiopen()
470 iiclose(dev_t dev, int flag, int otyp, cred_t *crp) in iiclose() argument
489 iiioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) in iiioctl() argument
/titanic_44/usr/src/uts/common/sys/
H A Dvt_impl.h114 void vt_close(queue_t *q, vc_state_t *pvc, cred_t *crp);
115 int vt_open(minor_t minor, queue_t *rq, cred_t *crp);
/titanic_44/usr/src/uts/common/avs/ns/rdc/
H A Drdc.c61 static int rdcopen(dev_t *devp, int flag, int otyp, cred_t *crp);
62 static int rdcclose(dev_t dev, int flag, int otyp, cred_t *crp);
64 static int rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp,
440 rdcopen(dev_t *devp, int flag, int otyp, cred_t *crp) in rdcopen() argument
449 rdcclose(dev_t dev, int flag, int otyp, cred_t *crp) in rdcclose() argument
668 rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) in rdcioctl() argument
676 if ((error = drv_priv(crp)) != 0) in rdcioctl()
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip_helper_stream.c65 ip_helper_share_conn(queue_t *q, mblk_t *mp, cred_t *crp) in ip_helper_share_conn() argument
73 if (kcred != crp || msgdsize(mp->b_cont) != sizeof (void *)) { in ip_helper_share_conn()
/titanic_44/usr/src/uts/common/fs/
H A Dpathname.c198 pn_getsymlink(vnode_t *vp, struct pathname *pnp, cred_t *crp) in pn_getsymlink() argument
212 if ((error = VOP_READLINK(vp, &auio, crp, NULL)) == 0) { in pn_getsymlink()
/titanic_44/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_misc.c92 static int sdbcopen(dev_t *devp, int flag, int otyp, cred_t *crp);
93 static int sdbcclose(dev_t dev, int flag, int otyp, cred_t *crp);
94 static int sdbcioctl(dev_t dev, int cmd, void *arg, int mode, cred_t *crp,
607 sdbcopen(dev_t *devp, int flag, int otyp, cred_t *crp) in sdbcopen() argument
635 sdbcclose(dev_t dev, int flag, int otyp, cred_t *crp) in sdbcclose() argument
923 sdbcioctl(dev_t dev, int cmd, void *arg, int mode, cred_t *crp, int *rvp) in sdbcioctl() argument

123