Home
last modified time | relevance | path

Searched refs:SAFE_SETEUID (Results 1 – 25 of 56) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c146 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in test_enomem2()
150 SAFE_SETEUID(cleanup, 0); in test_enomem2()
175 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in test_eperm()
179 SAFE_SETEUID(cleanup, 0); in test_eperm()
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown03.c116 SAFE_SETEUID(NULL, ltpuser->pw_uid); in setup()
124 SAFE_SETEUID(cleanup, 0); in setup()
130 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup()
/external/ltp/testcases/kernel/syscalls/chown/
Dchown03.c174 SAFE_SETEUID(NULL, ltpuser->pw_uid); in setup()
182 SAFE_SETEUID(cleanup, 0); in setup()
188 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup()
Dchown04.c168 SAFE_SETEUID(cleanup, 0); in setup()
178 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup()
/external/ltp/testcases/kernel/syscalls/mq_open/
Dmq_open01.c161 SAFE_SETEUID(pw->pw_uid); in create_queue()
166 SAFE_SETEUID(euid); in unlink_queue()
180 SAFE_SETEUID(pw->pw_uid); in set_max_queues()
185 SAFE_SETEUID(euid); in restore_max_queues()
/external/ltp/testcases/kernel/syscalls/chroot/
Dchroot01.c103 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup()
112 SAFE_SETEUID(NULL, 0); in cleanup()
/external/ltp/testcases/kernel/syscalls/open/
Dopen02.c57 SAFE_SETEUID(ltpuser->pw_uid); in setup()
84 SAFE_SETEUID(0); in cleanup()
/external/ltp/testcases/kernel/syscalls/rmdir/
Drmdir03.c89 SAFE_SETEUID(pw->pw_uid); in setup()
94 SAFE_SETEUID(0); in cleanup()
/external/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler02.c91 SAFE_SETEUID(cleanup, nobody_uid); in main()
117 SAFE_SETEUID(cleanup, 0); in main()
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod05.c68 SAFE_SETEUID(ltpuser->pw_uid); in setup()
79 SAFE_SETEUID(0); in cleanup()
/external/ltp/testcases/kernel/syscalls/delete_module/
Ddelete_module02.c63 SAFE_SETEUID(ltpuser->pw_uid); in do_delete_module()
77 SAFE_SETEUID(0); in do_delete_module()
/external/ltp/testcases/kernel/syscalls/mlock2/
Dmlock202.c60 SAFE_SETEUID(nobody->pw_uid); in verify_mlock2()
80 SAFE_SETEUID(0); in verify_mlock2()
/external/ltp/testcases/kernel/syscalls/swapoff/
Dswapoff02.c116 SAFE_SETEUID(cleanup, nobody_uid); in setup01()
122 SAFE_SETEUID(cleanup, 0); in cleanup01()
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl04.c88 SAFE_SETEUID(ltpuser->pw_uid); in setup()
106 SAFE_SETEUID(0); in cleanup()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat06.c156 SAFE_SETEUID(ltpuser->pw_uid); in test6_setup()
161 SAFE_SETEUID(0); in test6_cleanup()
/external/ltp/testcases/kernel/syscalls/swapon/
Dswapon02.c114 SAFE_SETEUID(cleanup, nobody_uid); in setup01()
119 SAFE_SETEUID(cleanup, 0); in cleanup01()
/external/ltp/testcases/kernel/syscalls/utime/
Dutime06.c157 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup_nobody()
162 SAFE_SETEUID(cleanup, 0); in cleanup_nobody()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod06.c109 SAFE_SETEUID(0); in set_root()
114 SAFE_SETEUID(nobody_uid); in set_nobody()
/external/ltp/testcases/kernel/syscalls/sched_setaffinity/
Dsched_setaffinity01.c85 SAFE_SETEUID(NULL, uid); in cleanup()
133 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup()
/external/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall03.c271 SAFE_SETEUID(cleanup, 0); in cleanup_test()
287 SAFE_SETEUID(cleanup, 0); in cleanup_test()
/external/ltp/testcases/kernel/syscalls/linkat/
Dlinkat02.c184 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup_eacces()
189 SAFE_SETEUID(cleanup, 0); in cleanup_eacces()
/external/ltp/testcases/kernel/syscalls/acct/
Dacct01.c194 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup2()
199 SAFE_SETEUID(cleanup, 0); in cleanup2()
/external/ltp/testcases/kernel/syscalls/setns/
Dsetns01.c144 SAFE_SETEUID(NULL, ltpuser->pw_uid); in setup4()
152 SAFE_SETEUID(NULL, 0); in cleanup4()
/external/ltp/testcases/kernel/syscalls/fchdir/
Dfchdir03.c63 SAFE_SETEUID(pw->pw_uid); in setup()
/external/ltp/testcases/kernel/syscalls/umount/
Dumount03.c60 SAFE_SETEUID(pw->pw_uid); in setup()

123