/titanic_50/usr/src/uts/common/os/ |
H A D | priv.c | 575 cred_t *tcr; in priv_proc_cred_perm() local 580 crhold(tcr = tp->p_cred); in priv_proc_cred_perm() 583 if (scr == tcr && !(tp->p_flag & SNOCD)) in priv_proc_cred_perm() 586 idsmatch = (scr->cr_uid == tcr->cr_uid && in priv_proc_cred_perm() 587 scr->cr_uid == tcr->cr_ruid && in priv_proc_cred_perm() 588 scr->cr_uid == tcr->cr_suid && in priv_proc_cred_perm() 589 scr->cr_gid == tcr->cr_gid && in priv_proc_cred_perm() 590 scr->cr_gid == tcr->cr_rgid && in priv_proc_cred_perm() 591 scr->cr_gid == tcr->cr_sgid && in priv_proc_cred_perm() 598 if (scr->cr_zone != tcr->cr_zone && secpolicy_proc_zone(scr) != 0) { in priv_proc_cred_perm() [all …]
|
H A D | policy.c | 1677 secpolicy_proc_owner(const cred_t *scr, const cred_t *tcr, int mode) in secpolicy_proc_owner() argument 1682 (tcr->cr_uid == 0 || tcr->cr_ruid == 0 || tcr->cr_suid == 0)) in secpolicy_proc_owner()
|
/titanic_50/usr/src/uts/common/inet/tcp/ |
H A D | tcp_tpi.c | 517 struct T_conn_req *tcr; in tcp_tpi_connect() local 540 tcr = (struct T_conn_req *)mp->b_rptr; in tcp_tpi_connect() 543 if ((mp->b_wptr - mp->b_rptr) < sizeof (*tcr)) { in tcp_tpi_connect() 568 switch (tcr->DEST_length) { in tcp_tpi_connect() 591 tcr->OPT_length, BPRI_HI); in tcp_tpi_connect() 605 sin = (sin_t *)mi_offset_param(mp, tcr->DEST_offset, in tcp_tpi_connect() 606 tcr->DEST_length); /* extract DEST_length worth of sin_t */ in tcp_tpi_connect() 617 if (tcr->OPT_length != 0) { in tcp_tpi_connect() 618 ntcr->OPT_length = tcr->OPT_length; in tcp_tpi_connect() 620 bcopy((uchar_t *)tcr + tcr->OPT_offset, in tcp_tpi_connect() [all …]
|
/titanic_50/usr/src/uts/common/syscall/ |
H A D | ppriv.c | 245 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()
|
/titanic_50/usr/src/uts/common/io/rtw/ |
H A D | rtw.c | 495 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 …]
|
/titanic_50/usr/src/uts/common/rpc/ |
H A D | clnt_cots.c | 2643 struct T_conn_req *tcr; in connmgr_connect() local 2656 mp = allocb_cred(sizeof (*tcr) + addr->len, cr, NOPID); in connmgr_connect() 2682 tcr = (struct T_conn_req *)mp->b_rptr; in connmgr_connect() 2683 bzero(tcr, sizeof (*tcr)); in connmgr_connect() 2684 tcr->PRIM_type = T_CONN_REQ; in connmgr_connect() 2685 tcr->DEST_length = addr->len; in connmgr_connect() 2686 tcr->DEST_offset = sizeof (struct T_conn_req); in connmgr_connect() 2687 mp->b_wptr = mp->b_rptr + sizeof (*tcr); in connmgr_connect() 2689 bcopy(addr->buf, mp->b_wptr, tcr->DEST_length); in connmgr_connect() 2690 mp->b_wptr += tcr->DEST_length; in connmgr_connect()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | timod.c | 1770 struct T_capability_req *tcr; in timodwproc() local 1772 error = miocpullup(mp, sizeof (*tcr)); in timodwproc() 1779 tcr = (struct T_capability_req *)tcsr_mp->b_rptr; in timodwproc() 1781 tcr->CAP_bits1); in timodwproc() 1783 if (tcr->PRIM_type != T_CAPABILITY_REQ) { in timodwproc() 1785 tcr->PRIM_type); in timodwproc() 1804 if ((tcr->CAP_bits1 & TC1_INFO) == 0) { in timodwproc() 1822 if ((tcr->CAP_bits1 & TC1_INFO) != 0) { in timodwproc()
|
/titanic_50/usr/src/uts/common/fs/nfs/ |
H A D | nfs_vfsops.c | 1155 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 D | nfs3_vfsops.c | 1025 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 D | nfs4_vfsops.c | 2284 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()
|
/titanic_50/usr/src/uts/common/fs/sockfs/ |
H A D | sockstr.c | 653 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()
|
/titanic_50/usr/src/uts/common/inet/udp/ |
H A D | udp.c | 689 struct T_conn_req *tcr; in udp_tpi_connect() local 706 tcr = (struct T_conn_req *)mp->b_rptr; in udp_tpi_connect() 714 if (tcr->OPT_length != 0) { in udp_tpi_connect() 725 len = tcr->DEST_length; in udp_tpi_connect() 726 switch (tcr->DEST_length) { in udp_tpi_connect() 732 sa = (struct sockaddr *)mi_offset_param(mp, tcr->DEST_offset, in udp_tpi_connect() 737 sa = (struct sockaddr *)mi_offset_param(mp, tcr->DEST_offset, in udp_tpi_connect()
|
/titanic_50/usr/src/uts/common/inet/ip/ |
H A D | icmp.c | 620 struct T_conn_req *tcr; in icmp_tpi_connect() local 640 tcr = (struct T_conn_req *)mp->b_rptr; in icmp_tpi_connect() 647 if (tcr->OPT_length != 0) { in icmp_tpi_connect() 652 len = tcr->DEST_length; in icmp_tpi_connect() 659 sa = (struct sockaddr *)mi_offset_param(mp, tcr->DEST_offset, in icmp_tpi_connect() 664 tcr->DEST_offset, sizeof (sin6_t)); in icmp_tpi_connect()
|