Home
last modified time | relevance | path

Searched refs:seteuid (Results 1 – 25 of 93) sorted by relevance

1234

/external/ltp/testcases/network/nfsv4/acl/
Dacl1.c133 if (seteuid((uid_t) 601) == 0) { in test1()
137 seteuid((uid_t) 0); in test1()
152 if (seteuid((uid_t) 602) == 0) { in test2()
156 seteuid((uid_t) 0); in test2()
169 if (seteuid((uid_t) 603) == 0) { in test3()
173 seteuid((uid_t) 0); in test3()
186 if (seteuid((uid_t) 604) == 0) { in test4()
190 seteuid((uid_t) 0); in test4()
197 if (seteuid((uid_t) 605) == 0) { in test5()
201 seteuid((uid_t) 0); in test5()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D26-2.c82 if (seteuid(pw->pw_uid) != 0) { in main()
98 seteuid(getuid()); in main()
105 seteuid(getuid()); in main()
110 seteuid(getuid()); in main()
D32-1.c45 if (seteuid(pw->pw_uid) != 0) { in set_nonroot()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/
D9-1.c57 if (seteuid(pw->pw_uid) != 0) { in main()
72 seteuid(getuid()); in main()
77 seteuid(getuid()); in main()
D8-1.c71 if (seteuid(pw->pw_uid) != 0) { in main()
89 seteuid(getuid()); in main()
/external/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c196 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test()
219 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test()
238 seteuid(0); in cleanup_test()
Dmlockall03.c222 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test()
252 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test()
/external/openssh/
Duidswap.c139 if (seteuid(pw->pw_uid) == -1) in temporarily_use_uid()
164 (setuid(old_uid) != -1 || seteuid(old_uid) != -1)) in permanently_drop_suid()
192 if (seteuid(saved_euid) < 0) in restore_uid()
287 (setuid(old_uid) != -1 || seteuid(old_uid) != -1)) in permanently_set_uid()
Dsshconnect.h65 if (seteuid(original_effective_uid) != 0) \
73 if (seteuid(original_real_uid) != 0) \
/external/ltp/testcases/kernel/syscalls/lchown/
Dlchown02.c203 if (seteuid(0) == -1) in setup_eperm()
210 if (seteuid(ltpuser->pw_uid) == -1) in setup_eperm()
285 if (seteuid(0) == -1) { in cleanup()
/external/ltp/testcases/kernel/syscalls/setdomainname/
Dsetdomainname03.c149 if (seteuid(ltpuser->pw_uid) == -1) { in setup()
172 if (seteuid(0) == -1) { in cleanup()
/external/ltp/testcases/kernel/syscalls/sethostname/
Dsethostname03.c142 if (seteuid(ltpuser->pw_uid) == -1) { in setup()
167 if (seteuid(0) == -1) { in cleanup()
/external/ltp/testcases/kernel/syscalls/open/
Dopen05.c70 if (seteuid(nobody_uid) == -1) { in main()
92 if (seteuid(0) == -1) in main()
/external/ltp/testcases/kernel/syscalls/reboot/
Dreboot02.c124 if (seteuid(0) == -1) { in main()
169 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test()
/external/ltp/testcases/kernel/syscalls/mq_unlink/
Dmq_unlink01.c100 if (tc->as_nobody && seteuid(pw->pw_uid)) { in do_test()
117 if (tc->as_nobody && seteuid(euid) == -1) in do_test()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D18-1.c52 if (seteuid(pw->pw_uid) != 0) { in set_nonroot()
134 seteuid(0); in main()
/external/ltp/testcases/kernel/syscalls/bind/
Dbind02.c84 if ((rc = seteuid(uid)) == -1) { in try_bind()
113 if ((rc = seteuid(uid)) == -1) { in try_bind()
/external/ltp/testcases/kernel/syscalls/rename/
Drename12.c127 if (seteuid(nobody_uid) == -1) { in main()
152 if (seteuid(0) == -1) { in main()
Drename09.c162 if ((rval = seteuid(bin_uid)) == -1) { in main()
192 if (seteuid(0) == -1) { in main()
/external/ltp/testcases/kernel/syscalls/utime/
Dutime03.c151 seteuid(user_uid); in main()
295 seteuid(0); in cleanup()
/external/autotest/client/site_tests/security_SessionManagerDbusEndpoints/
Dsecurity_SessionManagerDbusEndpoints.py33 os.seteuid(user_info[2])
40 os.seteuid(uid)
/external/ltp/testcases/kernel/syscalls/utils/
Dcommon_j_h.c91 rc = seteuid(pw->pw_uid); in setup_euid()
103 rc = seteuid(old_uid); in cleanup_euid()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/
D7-1.c38 if (seteuid(pw->pw_uid) != 0) { in set_nonroot()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D26-1.c38 if (seteuid(pw->pw_uid) != 0) { in set_nonroot()
/external/ltp/testcases/kernel/syscalls/umount/
Dumount03.c65 if (seteuid(0)) in cleanup()

1234