Home
last modified time | relevance | path

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

123

/third_party/ltp/testcases/kernel/syscalls/chown/
Dchown03.c48 SAFE_SETEUID(0); in run()
51 SAFE_SETEUID(ltpuser->pw_uid); in run()
76 SAFE_SETEUID(ltpuser->pw_uid); in setup()
85 SAFE_SETEUID(0); in cleanup()
Dchown04.c90 SAFE_SETEUID(0); in setup()
97 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/fchown/
Dfchown03.c57 SAFE_SETEUID(0); in run()
60 SAFE_SETEUID(ltpuser->pw_uid); in run()
79 SAFE_SETEUID(ltpuser->pw_uid); in setup()
87 SAFE_SETEUID(0); in cleanup()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/setdomainname/
Dsetdomainname03.c38 SAFE_SETEUID(ltpuser->pw_uid); in setup_setuid()
44 SAFE_SETEUID(0); in cleanup_setuid()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/setfsgid/
Dsetfsgid02.c36 SAFE_SETEUID(ltpuser->pw_uid); in run()
59 SAFE_SETEUID(0); in run()
/third_party/ltp/testcases/kernel/syscalls/reboot/
Dreboot02.c44 SAFE_SETEUID(ltpuser->pw_uid); in run()
49 SAFE_SETEUID(0); in run()
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen02.c45 SAFE_SETEUID(ltpuser->pw_uid); in setup()
58 SAFE_SETEUID(0); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/iopl/
Diopl02.c57 SAFE_SETEUID(pw->pw_uid); in setup()
62 SAFE_SETEUID(0); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/rename/
Drename09.c49 SAFE_SETEUID(test_users[1]); in run()
56 SAFE_SETEUID(orig_uid); in run()
/third_party/ltp/testcases/kernel/syscalls/adjtimex/
Dadjtimex02.c86 SAFE_SETEUID(ltpuser->pw_uid); in verify_adjtimex()
116 SAFE_SETEUID(0); in verify_adjtimex()
129 SAFE_SETEUID(ltpuser->pw_uid); in setup()
/third_party/ltp/testcases/kernel/syscalls/rmdir/
Drmdir03.c77 SAFE_SETEUID(pw->pw_uid); in setup()
82 SAFE_SETEUID(0); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod05.c69 SAFE_SETEUID(ltpuser->pw_uid); in setup()
80 SAFE_SETEUID(0); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/ioperm/
Dioperm02.c64 SAFE_SETEUID(pw->pw_uid); in setup()
69 SAFE_SETEUID(0); in cleanup()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/swapoff/
Dswapoff02.c69 SAFE_SETEUID(nobody_uid); in setup01()
75 SAFE_SETEUID(0); in cleanup01()
/third_party/ltp/testcases/kernel/syscalls/swapon/
Dswapon02.c46 SAFE_SETEUID(nobody_uid); in setup01()
51 SAFE_SETEUID(0); in cleanup01()
/third_party/ltp/testcases/kernel/syscalls/utime/
Dutime03.c74 SAFE_SETEUID(user_uid); in run()
78 SAFE_SETEUID(root_uid); in run()
/third_party/ltp/testcases/kernel/containers/userns/
Duserns08.c102 SAFE_SETEUID(100000); in run()
109 SAFE_SETEUID(0); in run()
/third_party/ltp/testcases/kernel/syscalls/mlock2/
Dmlock202.c60 SAFE_SETEUID(nobody->pw_uid); in verify_mlock2()
80 SAFE_SETEUID(0); in verify_mlock2()
/third_party/ltp/testcases/kernel/syscalls/acct/
Dacct01.c43 SAFE_SETEUID(ltpuser->pw_uid); in setup_euid()
48 SAFE_SETEUID(0); in cleanup_euid()
/third_party/ltp/testcases/kernel/syscalls/sched_setaffinity/
Dsched_setaffinity01.c52 SAFE_SETEUID(0); in kill_pid()
66 SAFE_SETEUID(ltpuser->pw_uid); in verify_test()
/third_party/ltp/testcases/kernel/syscalls/creat/
Dcreat06.c143 SAFE_SETEUID(ltpuser->pw_uid); in test6_setup()
148 SAFE_SETEUID(0); in test6_cleanup()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages03.c121 SAFE_SETEUID(ltpuser->pw_uid); in migrate_test()
131 SAFE_SETEUID(0); in migrate_test()

123