Home
last modified time | relevance | path

Searched refs:SAFE_SETEUID (Results 1 – 25 of 58) 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/setdomainname/
Dsetdomainname03.c38 SAFE_SETEUID(ltpuser->pw_uid); in setup_setuid()
44 SAFE_SETEUID(0); in cleanup_setuid()
/external/ltp/testcases/kernel/syscalls/mq_open/
Dmq_open01.c148 SAFE_SETEUID(pw->pw_uid); in create_queue()
153 SAFE_SETEUID(euid); in unlink_queue()
167 SAFE_SETEUID(pw->pw_uid); in set_max_queues()
172 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.c44 SAFE_SETEUID(ltpuser->pw_uid); in setup()
71 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/rmdir/
Drmdir03.c77 SAFE_SETEUID(pw->pw_uid); in setup()
82 SAFE_SETEUID(0); in cleanup()
/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/adjtimex/
Dadjtimex02.c61 SAFE_SETEUID(ltpuser->pw_uid); in verify_adjtimex()
88 SAFE_SETEUID(0); in verify_adjtimex()
/external/ltp/testcases/kernel/syscalls/swapoff/
Dswapoff02.c117 SAFE_SETEUID(cleanup, nobody_uid); in setup01()
123 SAFE_SETEUID(cleanup, 0); in cleanup01()
/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/swapon/
Dswapon02.c114 SAFE_SETEUID(cleanup, nobody_uid); in setup01()
119 SAFE_SETEUID(cleanup, 0); in cleanup01()
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl04.c75 SAFE_SETEUID(ltpuser->pw_uid); in setup()
93 SAFE_SETEUID(0); in cleanup()
/external/ltp/testcases/kernel/syscalls/sched_setaffinity/
Dsched_setaffinity01.c52 SAFE_SETEUID(0); in kill_pid()
66 SAFE_SETEUID(ltpuser->pw_uid); in verify_test()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat06.c143 SAFE_SETEUID(ltpuser->pw_uid); in test6_setup()
148 SAFE_SETEUID(0); in test6_cleanup()
/external/ltp/testcases/kernel/syscalls/acct/
Dacct01.c38 SAFE_SETEUID(ltpuser->pw_uid); in setup_euid()
43 SAFE_SETEUID(0); in cleanup_euid()
/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages03.c121 SAFE_SETEUID(ltpuser->pw_uid); in migrate_test()
131 SAFE_SETEUID(0); in migrate_test()
/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.c96 SAFE_SETEUID(0); in set_root()
101 SAFE_SETEUID(nobody_uid); in set_nobody()
/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/clock_adjtime/
Dclock_adjtime02.c132 SAFE_SETEUID(whoami); in verify_clock_adjtime()
171 SAFE_SETEUID(0); in verify_clock_adjtime()

123