• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching refs:uthread

352 	struct uthread *uthread = get_bsdthread_info(current_thread());
359 if (!(uthread->uu_flag & UT_SETUID))
362 if ((error = suword(uap->uidp, uthread->uu_ucred->cr_ruid)))
364 if ((error = suword(uap->gidp, uthread->uu_ucred->cr_rgid)))
1366 struct uthread *uthread = get_bsdthread_info(current_thread());
1380 if ((uthread->uu_flag & UT_SETUID) == 0)
1385 kauth_cred_unref(&uthread->uu_ucred);
1386 uthread->uu_ucred = uc;
1387 uthread->uu_flag &= ~UT_SETUID;
1392 if ((uthread->uu_flag & UT_SETUID) != 0) {
1403 kauth_cred_ref(uthread->uu_ucred);
1404 my_cred = uthread->uu_ucred;
1407 uthread->uu_ucred = my_new_cred;
1408 uthread->uu_flag |= UT_SETUID;
1410 /* Drop old uthread reference or our extra reference */
1437 struct uthread *uthread = get_bsdthread_info(current_thread());
1460 if ((uthread->uu_flag & UT_SETUID) != 0)
1483 kauth_cred_ref(uthread->uu_ucred);
1484 my_cred = uthread->uu_ucred;
1488 uthread->uu_ucred = my_new_cred;
1490 uthread->uu_flag |= UT_SETUID;
1492 /* Drop old uthread reference or our extra reference */
1505 if ((uthread->uu_flag & UT_SETUID) == 0)
1510 kauth_cred_unref(&uthread->uu_ucred);
1511 uthread->uu_ucred = my_new_cred;
1512 uthread->uu_flag &= ~UT_SETUID;
1560 struct uthread *uthread = get_bsdthread_info(current_thread());
1584 if ((uthread->uu_flag & UT_SETUID) != 0) {
1586 int my_cred_flags = uthread->uu_ucred->cr_flags;
1599 my_cred = uthread->uu_ucred;
1600 uthread->uu_ucred = kauth_cred_setgroups(my_cred, &newgroups[0], ngrp, gmuid);
1602 if (my_cred != uthread->uu_ucred) {
1603 DEBUG_CRED_CHANGE("setgroups1(CH)%d: %p/0x%08x->%p/0x%08x\n", p->p_pid, my_cred, my_cred_flags, uthread->uu_ucred , uthread->uu_ucred ->cr_flags);
1957 uthread_t uthread;
1958 uthread = (uthread_t)get_bsdthread_info(current_thread());
1959 if (uthread->uu_flag & UT_VFORK)