Home
last modified time | relevance | path

Searched refs:t_cred (Results 1 – 25 of 34) sorted by relevance

12

/titanic_44/usr/src/uts/i86pc/os/
H A Ddtrace_subr.c185 if (curthread->t_cred != p->p_cred) { in dtrace_user_probe()
186 cred_t *oldcred = curthread->t_cred; in dtrace_user_probe()
192 curthread->t_cred = crgetcred(); in dtrace_user_probe()
H A Dtrap.c545 if (ct->t_cred != p->p_cred) { in trap()
546 cred_t *oldcred = ct->t_cred; in trap()
552 ct->t_cred = crgetcred(); in trap()
/titanic_44/usr/src/uts/common/os/
H A Dpanic.c378 if (t->t_cred == NULL) in panicsys()
379 t->t_cred = kcred; in panicsys()
H A Dcred.c234 curthread->t_cred = kcred; in cred_init()
324 oldcr = t->t_cred; in crset()
325 t->t_cred = cr; /* the cred is held by caller for this thread */ in crset()
H A Devchannels.c1089 p->ch_uid = crgetuid(curthread->t_cred); in evch_chbind()
1090 p->ch_gid = crgetgid(curthread->t_cred); in evch_chbind()
2281 uid_t uid = crgetuid(curthread->t_cred); in evch_usrcontrol_set()
H A Dexec.c804 oldcred = curthread->t_cred; in gexec()
805 curthread->t_cred = cred; in gexec()
H A Ddriver_lyr.c558 cred_t *saved_cred = curthread->t_cred; in ldi_vp_from_name()
561 curthread->t_cred = kcred; in ldi_vp_from_name()
576 curthread->t_cred = saved_cred; in ldi_vp_from_name()
/titanic_44/usr/src/uts/common/disp/
H A Dthread_intr.c72 tp->t_cred = NULL; in thread_create_intr()
H A Dthread.c424 crhold(t->t_cred = pp->p_cred); in thread_create()
740 if (t->t_cred != NULL) { in thread_free()
741 crfree(t->t_cred); in thread_free()
742 t->t_cred = 0; in thread_free()
826 if ((cr = (*tp)->t_cred) != NULL && crgetzoneid(cr) == zoneid) { in thread_zone_cleanup()
1386 tp->t_cred = NULL; in thread_create_intr()
/titanic_44/usr/src/uts/common/syscall/
H A Duadmin.c236 if (curthread->t_cred == NULL) in kadmin()
237 curthread->t_cred = kcred; in kadmin()
H A Dgroups.c135 cr = curthread->t_cred; in getgroups()
H A Dgid.c137 cr = curthread->t_cred; in getgid()
H A Duid.c182 cr = curthread->t_cred; in getuid()
H A Dlgrpsys.c346 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED())) { in lgrp_affinity_get_thread()
588 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED())) { in lgrp_affinity_set_thread()
959 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED())) { in lgrp_home_thread()
H A Dpset.c273 if (!hasprocperm(tp->t_cred, CRED())) in pset_bind_thread()
/titanic_44/usr/src/uts/common/sys/
H A Dcred.h52 #define CRED() curthread->t_cred
H A Dthread.h181 struct cred *t_cred; /* pointer to current cred */ member
/titanic_44/usr/src/uts/common/rpc/sec/
H A Dsec_clnt.c496 savecred = curthread->t_cred; in sec_clnt_geth()
497 curthread->t_cred = cr; in sec_clnt_geth()
520 curthread->t_cred = savecred; in sec_clnt_geth()
/titanic_44/usr/src/uts/sun4/os/
H A Dtrap.c192 if (curthread->t_cred != p->p_cred) { in trap()
193 cred_t *oldcred = curthread->t_cred; in trap()
199 curthread->t_cred = crgetcred(); in trap()
1391 if (curthread->t_cred != p->p_cred) { in fpu_trap()
1392 cred_t *oldcred = curthread->t_cred; in fpu_trap()
1398 curthread->t_cred = crgetcred(); in fpu_trap()
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs_srv.c1050 savecred = curthread->t_cred; in rfs_write_sync()
1051 curthread->t_cred = cr; in rfs_write_sync()
1053 curthread->t_cred = savecred; in rfs_write_sync()
1093 savecred = curthread->t_cred; in rfs_write_sync()
1094 curthread->t_cred = cr; in rfs_write_sync()
1096 curthread->t_cred = savecred; in rfs_write_sync()
1586 savecred = curthread->t_cred; in rfs_write()
1587 curthread->t_cred = cr; in rfs_write()
1589 curthread->t_cred = savecred; in rfs_write()
H A Dnfs4_client.c2696 if (crgetuid(curthread->t_cred) != crgetuid(cr) || in nfs4_write_error()
2697 crgetgid(curthread->t_cred) != crgetgid(cr)) { in nfs4_write_error()
2700 crgetuid(curthread->t_cred), in nfs4_write_error()
2701 crgetgid(curthread->t_cred)); in nfs4_write_error()
H A Dnfs4_recovery.c2945 sv_cred = curthread->t_cred; in resend_lock()
2946 curthread->t_cred = kcred; in resend_lock()
2949 curthread->t_cred = sv_cred; in resend_lock()
/titanic_44/usr/src/uts/intel/ia32/os/
H A Dsyscall.c274 if (t->t_cred != p->p_cred) { in pre_syscall()
275 cred_t *oldcred = t->t_cred; in pre_syscall()
281 t->t_cred = crgetcred(); in pre_syscall()
/titanic_44/usr/src/uts/sparc/os/
H A Dsyscall.c380 if (t->t_cred != p->p_cred) { in pre_syscall()
381 cred_t *oldcred = t->t_cred; in pre_syscall()
387 t->t_cred = crgetcred(); in pre_syscall()
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dthread.c493 mdb_printf(" %?p %?p %?p", t.t_procp, t.t_lwp, t.t_cred); in thread()

12