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

123456

/external/compiler-rt/test/tsan/
H A Dsetuid.c3 // setuid(0) hangs on powerpc64 big endian. When this is fixed remove
13 // SIGSETXID signal. Note that we don't care whether setuid call succeeds
26 setuid(0);
H A Dsetuid2.c3 // setuid(0) hangs on powerpc64 big endian. When this is fixed remove
13 // Test that setuid call works in presence of stoptheworld.
21 setuid(0);
/external/ltp/testcases/kernel/security/smack/
H A Dsmack_notroot.c23 setuid(1);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/
H A D3-1.c26 setuid(1);
H A D2-2.c58 setuid(1);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
H A D5-1.c40 setuid(pwd->pw_uid);
/external/ltp/testcases/kernel/syscalls/ipc/shmget/
H A Dshmget04.c119 if (setuid(ltpuser->pw_uid) == -1) {
120 tst_resm(TINFO, "setuid failed to "
122 perror("setuid");
H A Dshmget05.c87 if (setuid(ltp_uid) == -1) {
88 tst_resm(TBROK, "setuid() failed");
/external/ltp/testcases/kernel/syscalls/setuid/
H A Dsetuid01.c67 UID16_CHECK(uid, setuid, cleanup);
73 "setuid - Set the effective user ID to the current real uid failed, errno=%d : %s",
77 "setuid - Set the effective user ID to the current real uid returned %ld",
H A Dsetuid02.c42 * TEST TITLE : Basic test for setuid(2) as root
62 * 1.) setuid(2) returns...(See Description)
90 * This is a Phase I test for the setuid(2) system call. It is intended
93 * setuid(2).
146 UID16_CHECK(uid, setuid, cleanup);
156 /* Call setuid(2) */
162 "setuid - Set the effective user ID to the current real uid failed, errno=%d : %s",
166 "setuid - Set the effective user ID to the current real uid returned %ld",
H A Dsetuid03.c21 * Test to check the error and trivial conditions in setuid
63 tst_resm(TPASS, "setuid returned errno EPERM");
65 tst_resm(TFAIL, "setuid returned unexpected errno - %d",
84 if (setuid(ltpuser->pw_uid) == -1) {
85 tst_resm(TINFO, "setuid failed to "
87 perror("setuid");
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
H A D6-1.c56 if (setuid(pw->pw_uid) != 0) {
61 perror("setuid failed");
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D20-1.c45 if (setuid(pw->pw_uid) != 0) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
H A D12-1.c42 /* setuid will change uid, euid */
43 if (setuid(pw->pw_uid) != 0) {
H A D3-1.c46 if (setuid(pw->pw_uid) != 0) {
/external/ltp/testcases/commands/cron/
H A Dcron_neg_tests.sh83 # Test whether cron uses setuid correctly
86 echo setuid test
114 echo "setuid test part 1 successfully failed (PASS)"
123 echo "setuid test part 2 successfully failed (PASS)"
/external/ltp/testcases/kernel/syscalls/chmod/
H A Dchmod04.c166 if (setuid(ltpuser->pw_uid) == -1)
167 tst_resm(TINFO | TERRNO, "setuid(%u) failed", ltpuser->pw_uid);
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
H A Dmsgctl05.c88 if (setuid(ltp_uid) == -1) {
89 tst_resm(TBROK, "setuid() failed");
/external/ltp/testcases/kernel/syscalls/ipc/semctl/
H A Dsemctl02.c124 if (setuid(ltpuser->pw_uid) == -1) {
125 tst_resm(TINFO, "setuid failed to "
127 perror("setuid");
/external/ltp/testcases/kernel/syscalls/mkdir/
H A Dmkdir05.c119 if (setuid(ltpuser->pw_uid) == -1) {
120 tst_resm(TINFO, "setuid failed to "
122 perror("setuid");
/external/ltp/testcases/kernel/syscalls/setfsgid/
H A Dsetfsgid03.c95 if (setuid(ltpuser->pw_uid) == -1)
97 "setuid failed to set the effective uid to %d",
/external/ltp/testcases/kernel/syscalls/setfsuid/
H A Dsetfsuid03.c95 if (setuid(ltpuser->pw_uid) == -1)
96 tst_resm(TINFO | TERRNO, "setuid failed to "
/external/ltp/testcases/kernel/syscalls/setgid/
H A Dsetgid02.c98 if (setuid(ltpuser->pw_uid) == -1) {
99 tst_resm(TINFO, "setuid failed to "
101 perror("setuid");
/external/ltp/testcases/kernel/syscalls/statfs/
H A Dstatfs03.c152 if (setuid(0) == -1) {
153 tst_resm(TINFO, "setuid(0) failed");
/external/ltp/testcases/kernel/syscalls/stime/
H A Dstime02.c144 if (setuid(ltpuser->pw_uid) == -1) {
145 tst_resm(TINFO, "setuid failed to "
147 perror("setuid");

Completed in 4649 milliseconds

123456