Home
last modified time | relevance | path

Searched refs:tcr (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dpriv.c574 cred_t *tcr; in priv_proc_cred_perm() local
579 crhold(tcr = tp->p_cred); in priv_proc_cred_perm()
582 if (scr == tcr && !(tp->p_flag & SNOCD)) in priv_proc_cred_perm()
585 idsmatch = (scr->cr_uid == tcr->cr_uid && in priv_proc_cred_perm()
586 scr->cr_uid == tcr->cr_ruid && in priv_proc_cred_perm()
587 scr->cr_uid == tcr->cr_suid && in priv_proc_cred_perm()
588 scr->cr_gid == tcr->cr_gid && in priv_proc_cred_perm()
589 scr->cr_gid == tcr->cr_rgid && in priv_proc_cred_perm()
590 scr->cr_gid == tcr->cr_sgid && in priv_proc_cred_perm()
597 if (scr->cr_zone != tcr->cr_zone && secpolicy_proc_zone(scr) != 0) { in priv_proc_cred_perm()
[all …]
H A Dpolicy.c1739 secpolicy_proc_owner(const cred_t *scr, const cred_t *tcr, int mode) in secpolicy_proc_owner() argument
1744 (tcr->cr_uid == 0 || tcr->cr_ruid == 0 || tcr->cr_suid == 0)) in secpolicy_proc_owner()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tpi.c523 struct T_conn_req *tcr; in tcp_tpi_connect() local
546 tcr = (struct T_conn_req *)mp->b_rptr; in tcp_tpi_connect()
549 if ((mp->b_wptr - mp->b_rptr) < sizeof (*tcr)) { in tcp_tpi_connect()
574 switch (tcr->DEST_length) { in tcp_tpi_connect()
597 tcr->OPT_length, BPRI_HI); in tcp_tpi_connect()
611 sin = (sin_t *)mi_offset_param(mp, tcr->DEST_offset, in tcp_tpi_connect()
612 tcr->DEST_length); /* extract DEST_length worth of sin_t */ in tcp_tpi_connect()
623 if (tcr->OPT_length != 0) { in tcp_tpi_connect()
624 ntcr->OPT_length = tcr->OPT_length; in tcp_tpi_connect()
626 bcopy((uchar_t *)tcr + tcr->OPT_offset, in tcp_tpi_connect()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dppriv.c245 setpflags(uint_t flag, uint_t val, cred_t *tcr) in setpflags() argument
250 boolean_t use_curcred = (tcr == NULL); in setpflags()
274 cr = pcr = tcr; in setpflags()
/illumos-gate/usr/src/uts/common/io/rtw/
H A Drtw.c495 uint32_t tcr; in rtw_continuous_tx_enable() local
496 tcr = RTW_READ(regs, RTW_TCR); in rtw_continuous_tx_enable()
497 tcr &= ~RTW_TCR_LBK_MASK; in rtw_continuous_tx_enable()
499 tcr |= RTW_TCR_LBK_CONT; in rtw_continuous_tx_enable()
501 tcr |= RTW_TCR_LBK_NORMAL; in rtw_continuous_tx_enable()
502 RTW_WRITE(regs, RTW_TCR, tcr); in rtw_continuous_tx_enable()
1707 uint32_t tcr; in rtw_transmit_config() local
1709 tcr = RTW_READ(regs, RTW_TCR); in rtw_transmit_config()
1711 tcr |= RTW_TCR_CWMIN; in rtw_transmit_config()
1712 tcr &= ~RTW_TCR_MXDMA_MASK; in rtw_transmit_config()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dclnt_cots.c2641 struct T_conn_req *tcr; in connmgr_connect() local
2654 mp = allocb_cred(sizeof (*tcr) + addr->len, cr, NOPID); in connmgr_connect()
2680 tcr = (struct T_conn_req *)mp->b_rptr; in connmgr_connect()
2681 bzero(tcr, sizeof (*tcr)); in connmgr_connect()
2682 tcr->PRIM_type = T_CONN_REQ; in connmgr_connect()
2683 tcr->DEST_length = addr->len; in connmgr_connect()
2684 tcr->DEST_offset = sizeof (struct T_conn_req); in connmgr_connect()
2685 mp->b_wptr = mp->b_rptr + sizeof (*tcr); in connmgr_connect()
2687 bcopy(addr->buf, mp->b_wptr, tcr->DEST_length); in connmgr_connect()
2688 mp->b_wptr += tcr->DEST_length; in connmgr_connect()
/illumos-gate/usr/src/uts/common/io/
H A Dtimod.c1774 struct T_capability_req *tcr; in timodwproc() local
1776 error = miocpullup(mp, sizeof (*tcr)); in timodwproc()
1783 tcr = (struct T_capability_req *)tcsr_mp->b_rptr; in timodwproc()
1785 tcr->CAP_bits1); in timodwproc()
1787 if (tcr->PRIM_type != T_CAPABILITY_REQ) { in timodwproc()
1789 tcr->PRIM_type); in timodwproc()
1808 if ((tcr->CAP_bits1 & TC1_INFO) == 0) { in timodwproc()
1826 if ((tcr->CAP_bits1 & TC1_INFO) != 0) { in timodwproc()
H A Dasy.c782 uint8_t tcr; in asy_set_baudrate() local
790 tcr = asy_baud_tab[baudrate].asy_tcr; in asy_set_baudrate()
792 if (tcr != 0 && asy->asy_hwtype < ASY_16950) in asy_set_baudrate()
796 if (tcr == 0x01) { in asy_set_baudrate()
805 ASSERT(tcr == 0x00 || tcr >= 0x04 || tcr <= 0x0f); in asy_set_baudrate()
806 asy_put(asy, ASY_TCR, tcr); in asy_set_baudrate()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_vfsops.c1155 cred_t *lcr = NULL, *tcr = cr; in nfsrootvp() local
1269 tcr = lcr; in nfsrootvp()
1272 error = nfsgetattr(rtvp, &va, tcr); in nfsrootvp()
1298 tcr, &douprintf, &fs.fs_status, 0, NULL); in nfsrootvp()
H A Dnfs3_vfsops.c1025 cred_t *lcr = NULL, *tcr = cr; in nfs3rootvp() local
1164 tcr = lcr; in nfs3rootvp()
1179 xdr_FSINFO3res, (caddr_t)&res, tcr, in nfs3rootvp()
1321 error = nfs3getattr(rtvp, &va, tcr); in nfs3rootvp()
H A Dnfs4_vfsops.c2284 cred_t *lcr = NULL, *tcr = cr; in nfs4rootvp() local
2463 tcr = lcr; in nfs4rootvp()
2499 NFS4_GETFH_NEEDSOP, tcr, &e); in nfs4rootvp()
2607 error = nfs4getattr(rtvp, &va, tcr); in nfs4rootvp()
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockstr.c653 struct T_capability_req tcr; in do_tcapability() local
675 tcr.PRIM_type = T_CAPABILITY_REQ; in do_tcapability()
676 tcr.CAP_bits1 = cap_bits1; in do_tcapability()
677 mp = soallocproto1(&tcr, sizeof (tcr), in do_tcapability()
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp.c706 struct T_conn_req *tcr; in udp_tpi_connect() local
723 tcr = (struct T_conn_req *)mp->b_rptr; in udp_tpi_connect()
731 if (tcr->OPT_length != 0) { in udp_tpi_connect()
742 len = tcr->DEST_length; in udp_tpi_connect()
743 switch (tcr->DEST_length) { in udp_tpi_connect()
749 sa = (struct sockaddr *)mi_offset_param(mp, tcr->DEST_offset, in udp_tpi_connect()
754 sa = (struct sockaddr *)mi_offset_param(mp, tcr->DEST_offset, in udp_tpi_connect()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dicmp.c622 struct T_conn_req *tcr; in icmp_tpi_connect() local
642 tcr = (struct T_conn_req *)mp->b_rptr; in icmp_tpi_connect()
649 if (tcr->OPT_length != 0) { in icmp_tpi_connect()
654 len = tcr->DEST_length; in icmp_tpi_connect()
661 sa = (struct sockaddr *)mi_offset_param(mp, tcr->DEST_offset, in icmp_tpi_connect()
666 tcr->DEST_offset, sizeof (sin6_t)); in icmp_tpi_connect()
/illumos-gate/usr/src/uts/common/io/upf/
H A Dupf_usbgem.c945 uint32_t tcr; in upfattach() local