Lines Matching refs:crp
198 int anchor, cred_t *crp, uint_t anchor_zoneid) in push_mod() argument
219 if ((error = qattach(qp, devp, 0, crp, fp, B_FALSE)) != 0) in push_mod()
237 xpg4_fixup(queue_t *qp, dev_t *devp, struct stdata *stp, cred_t *crp) in xpg4_fixup() argument
256 zoneid = crgetzoneid(crp); in xpg4_fixup()
261 crp, zoneid); in xpg4_fixup()
275 (void) strdoioctl(stp, &strioc, FNATIVE, K_TO_K, crp, &rval); in xpg4_fixup()
284 stropen(vnode_t *vp, dev_t *devp, int flag, cred_t *crp) in stropen() argument
397 if ((error = qreopen(_RD(qp), devp, flag, crp)) != 0) in stropen()
491 if ((error = qattach(qp, devp, flag, crp, NULL, B_FALSE)) != 0) { in stropen()
522 if (push_mod(qp, &dummydev, stp, DRMODNAME, 0, crp, 0) != 0) in stropen()
549 zoneid = crgetzoneid(crp); in stropen()
552 dlap.dap_aplist[s], dlap.dap_anchor, crp, in stropen()
579 zoneid = crgetzoneid(crp); in stropen()
586 zoneid = crgetzoneid(crp); in stropen()
589 anchor, crp, zoneid); in stropen()
600 error = xpg4_fixup(qp, devp, stp, crp); in stropen()
665 strclose(struct vnode *vp, int flag, cred_t *crp) in strclose() argument
740 ns = netstack_find_by_cred(crp); in strclose()
745 (void) munlinkall(stp, LINKCLOSE|LINKNORMAL, crp, &rval, ss); in strclose()
787 qdetach(_RD(rmq), 1, flag, crp, B_FALSE); in strclose()
1217 strread(struct vnode *vp, struct uio *uiop, cred_t *crp) in strread() argument
1292 vp, uiop, crp); in strread()
1297 vp, uiop, crp); in strread()
1305 "strread awakes:%p, %p, %p", vp, uiop, crp); in strread()
2809 strwrite(struct vnode *vp, struct uio *uiop, cred_t *crp) in strwrite() argument
2811 return (strwrite_common(vp, uiop, crp, 0)); in strwrite()
2816 strwrite_common(struct vnode *vp, struct uio *uiop, cred_t *crp, int wflag) in strwrite_common() argument
3281 cred_t *crp, int *rvalp) in strioctl() argument
3439 K_TO_K, crp, rvalp)); in strioctl()
3448 copyflag, crp, rvalp)); in strioctl()
3456 copyflag, crp, rvalp)); in strioctl()
3462 copyflag, crp, rvalp)); in strioctl()
3468 copyflag, crp, rvalp)); in strioctl()
3472 secpolicy_sti(crp) != 0) { in strioctl()
3478 secpolicy_sti(crp) != 0) { in strioctl()
3489 copyflag, crp, rvalp)); in strioctl()
3495 copyflag, crp, rvalp)); in strioctl()
3501 copyflag, crp, rvalp)); in strioctl()
3518 copyflag, crp, rvalp)); in strioctl()
3525 copyflag, crp, rvalp)); in strioctl()
3532 copyflag, crp, rvalp)); in strioctl()
3539 copyflag, crp, rvalp)); in strioctl()
3545 copyflag, crp, rvalp)); in strioctl()
3552 copyflag, crp, rvalp)); in strioctl()
3586 copyflag, crp, rvalp)); in strioctl()
3598 return (strdoioctl(stp, &strioc, flag, copyflag, crp, rvalp)); in strioctl()
3650 error = strdoioctl(stp, &strioc, flag, copyflag, crp, rvalp); in strioctl()
3690 if ((error = strdocmd(stp, scp, crp)) == 0) { in strioctl()
3937 if ((error = qattach(rdq, &dummydev, 0, crp, fp, in strioctl()
4000 if (secpolicy_ip_config(crp, B_TRUE) != 0 || in strioctl()
4001 (stp->sd_anchorzone != crgetzoneid(crp))) { in strioctl()
4012 if (stp->sd_anchorzone != crgetzoneid(crp)) in strioctl()
4015 return (secpolicy_ip_config(crp, B_FALSE)); in strioctl()
4026 qdetach(_RD(q), 1, flag, crp, B_FALSE); in strioctl()
4102 ns = netstack_find_by_cred(crp); in strioctl()
4159 if ((error = secpolicy_net_config(crp, B_FALSE)) != 0) in strioctl()
4162 stp->sd_anchorzone != crgetzoneid(crp)) in strioctl()
4217 stp->sd_anchorzone != crgetzoneid(crp)) { in strioctl()
4241 if ((error = qattach(_RD(tmp_wrq), &dummydev, 0, crp, in strioctl()
4325 if ((error = secpolicy_net_config(crp, B_FALSE)) != 0) in strioctl()
4328 stp->sd_anchorzone != crgetzoneid(crp)) in strioctl()
4370 stp->sd_anchorzone != crgetzoneid(crp)) { in strioctl()
4380 qdetach(_RD(q), 1, flag, crp, is_remove); in strioctl()
4448 stp->sd_anchorzone != crgetzoneid(crp)) { in strioctl()
4453 stp->sd_anchorzone = crgetzoneid(crp); in strioctl()
4479 return (mlink(vp, cmd, (int)arg, crp, rvalp, 0)); in strioctl()
4486 return (ldi_mlink_lh(vp, cmd, arg, crp, rvalp)); in strioctl()
4516 ns = netstack_find_by_cred(crp); in strioctl()
4522 error = munlinkall(stp, type, crp, rvalp, ss); in strioctl()
4532 error = munlink(stp, linkp, type, crp, rvalp, ss); in strioctl()
4570 (void) strdoioctl(stp, &strioc, flag, K_TO_K, crp, rvalp); in strioctl()
4604 (void) strdoioctl(stp, &strioc, flag, K_TO_K, crp, rvalp); in strioctl()
5415 error = do_sendfp(stp, fp, crp); in strioctl()
5994 cred_t *crp, in strdoioctl() argument
6027 crp, curproc->p_pid)) == NULL) in strdoioctl()
6037 crhold(crp); in strdoioctl()
6038 iocbp->ioc_cr = crp; in strdoioctl()
6059 if ((error = putiocd(bp, strioc->ic_dp, id, crp)) != 0) { in strdoioctl()
6061 crfree(crp); in strdoioctl()
6076 crfree(crp); in strdoioctl()
6141 crfree(crp); in strdoioctl()
6206 crfree(crp); in strdoioctl()
6279 crfree(crp); in strdoioctl()
6378 error = putiocd(bp, reqp->cq_addr, flag, crp); in strdoioctl()
6387 mblk_setcred(bp, crp, curproc->p_pid); in strdoioctl()
6401 crfree(crp); in strdoioctl()
6431 mblk_setcred(bp, crp, curproc->p_pid); in strdoioctl()
6445 crfree(crp); in strdoioctl()
6460 crfree(crp); in strdoioctl()
6471 strdocmd(struct stdata *stp, struct strcmd *scp, cred_t *crp) in strdocmd() argument
6486 if ((mp = allocb_cred(sizeof (struct cmdblk), crp, in strdocmd()
6490 crhold(crp); in strdocmd()
6493 cmdp->cb_cr = crp; in strdocmd()
6506 mp->b_cont = allocb_cred(sizeof (scp->sc_buf), crp, in strdocmd()
6590 crfree(crp); in strdocmd()
6596 crfree(crp); in strdocmd()