Home
last modified time | relevance | path

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

1234

/external/ltp/testcases/network/nfsv4/acl/
Dacl1.c132 if (seteuid((uid_t) 601) == 0) { in test1()
136 seteuid((uid_t) 0); in test1()
151 if (seteuid((uid_t) 602) == 0) { in test2()
155 seteuid((uid_t) 0); in test2()
168 if (seteuid((uid_t) 603) == 0) { in test3()
172 seteuid((uid_t) 0); in test3()
185 if (seteuid((uid_t) 604) == 0) { in test4()
189 seteuid((uid_t) 0); in test4()
196 if (seteuid((uid_t) 605) == 0) { in test5()
200 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()
D34-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/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/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/mq_unlink/
Dmq_unlink01.c87 if (tc->as_nobody && seteuid(pw->pw_uid)) { in do_test()
104 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/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/mtools/
Dprivileges.c99 seteuid(uid); in Setuid()
136 seteuid(ruid); /* for good measure... just in case we came in destroy_privs()
/external/openssh/
Duidswap.c148 if (seteuid(pw->pw_uid) == -1) in temporarily_use_uid()
170 if (seteuid(saved_euid) == -1) in restore_uid()
267 (setuid(old_uid) != -1 || seteuid(old_uid) != -1)) in permanently_set_uid()
/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.c52 if (seteuid(0)) in cleanup()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/speculative/
D15-1.c49 if (seteuid(pw->pw_uid) != 0) { in set_nonroot()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/
D15-1.c49 if (seteuid(pw->pw_uid) != 0) { in set_nonroot()

1234