Searched refs:setuid (Results 1 - 5 of 5) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/man/man2/
H A DMakefile165 setuid.2 \
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_prot.c686 * setuid
706 setuid(proc_t p, struct setuid_args *uap, __unused register_t *retval) function
720 DEBUG_CRED_ENTER("setuid (%d/%d): %p %d\n", p->p_pid, (p->p_pptr ? p->p_pptr->p_pid : 0), my_cred, uap->uid);
723 if (uid != my_cred->cr_ruid && /* allow setuid(getuid()) */
724 uid != my_cred->cr_svuid && /* allow setuid(saved uid) */
772 DEBUG_CRED_CHANGE("setuid CH(%d): %p/0x%08x -> %p/0x%08x\n", p->p_pid, my_cred, my_cred->cr_flags, my_new_cred, my_new_cred->cr_flags);
1543 * the settid call that created it, not before (unlike setuid,
H A Dinit_sysent.c74 {AC(setuid_args), 0, 0, (sy_call_t *)setuid, munge_w, munge_d, _SYSCALL_RET_INT_T, 4}, /* 23 = setuid */
/macosx-10.5.8/xnu-1228.15.4/tools/tests/xnu_quick_test/
H A Dtests.c1512 * Test getauid, gettid, getuid, geteuid, issetugid, setauid, seteuid, settid, settid_with_pid, setuid system calls.
1542 * fork here and do the setuid work in the child
1681 my_err = setuid( my_euid );
1683 printf( "setuid call failed with error %d - \"%s\" \n", errno, strerror( errno) );
1687 printf( "setuid call failed to set the real uid \n" );
1703 my_err = setuid( my_ruid );
1705 printf( "setuid call failed with error %d - \"%s\" \n", errno, strerror( errno) );
1709 printf( "setuid call failed to set the real uid \n" );
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dsysproto.h1721 int setuid(struct proc *, struct setuid_args *, int *);

Completed in 70 milliseconds