/third_party/ltp/testcases/kernel/syscalls/setreuid/ |
H A D | setreuid05.c | 11 * Test the setreuid() feature, verifying the role of the saved-set-uid 12 * and setreuid's effect on it. 35 "setreuid(nobody, root)"}, 37 "setreuid(-1, nobody)"}, 39 "setreuid(-1, root)"}, 41 "setreuid(main, -1)"}, 43 "setreuid(-1, other)"}, 45 "setreuid(-1, root)"}, 47 "setreuid(-1, nobody)"}, 49 "setreuid( [all...] |
H A D | setreuid02.c | 11 * Test setreuid() when executed by root. 32 "setreuid(-1, -1)"}, 34 "setreuid(nobody, -1)"}, 36 "setreuid(root, -1)"}, 38 "setreuid(-1, nobody)"}, 40 "setreuid(-1, root)"}, 42 "setreuid(other, -1)"}, 44 "setreuid(root, -1)"}, 58 UID16_CHECK(root_uid, setreuid); in setup() 59 UID16_CHECK(nobody_uid, setreuid); in setup() [all...] |
H A D | setreuid01.c | 12 * Verify the basic functionality of setreuid(2) system call when executed 24 UID16_CHECK(ruid, setreuid); in run() 27 UID16_CHECK(euid, setreuid); in run()
|
H A D | setreuid04.c | 29 UID16_CHECK(nobody_uid, setreuid); in setup() 30 UID16_CHECK(root_uid, setreuid); in setup()
|
H A D | setreuid03.c | 11 * Test setreuid() when executed by an unpriviledged user. 33 "setreuid(nobody, nobody)"}, 35 "setreuid(-1, nobody)"}, 37 "setreuid(nobody, -1)"}, 39 "setreuid(-1, -1)"}, 41 "setreuid(-1, root)"}, 43 "setreuid(root, -1)"}, 45 &nobody_uid, "setreuid(root, root)"}, 47 &nobody_uid, "setreuid(root, nobody)"}, 49 &nobody_uid, "setreuid(roo [all...] |
H A D | setreuid07.c | 12 * Check if setreuid behaves correctly with file permissions. 13 * The test creates a file as ROOT with permissions 0644, does a setreuid 35 UID16_CHECK(ltpuser->pw_uid, setreuid); in setup()
|
H A D | setreuid06.c | 11 * Verify that setreuid(2) syscall fails with EPERM errno when the calling 31 UID16_CHECK(other_uid, setreuid); in setup() 41 "setreuid(%d, %d)", -1, other_uid); in run() 43 "setreuid(%d, %d)", other_uid, -1); in run() 45 "setreuid(%d, %d)", other_uid, other_uid); in run()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | setreuid.c | 32 int result = setreuid(sruid, seuid); in setreuid_0100() 44 result = setreuid(cuid, ceuid); in setreuid_0100() 62 int result = setreuid(sruid, seuid); in setreuid_0200()
|
/third_party/ltp/testcases/kernel/syscalls/getresuid/ |
H A D | getresuid02.c | 25 * and saved user ids after calling process invokes setreuid() to change 106 * setreuid() in setup. in main() 165 if (setreuid(-1, ps_uid) < 0) { in setup() 167 "setreuid(-1, %d) Fails, errno:%d : %s", in setup() 182 if (setreuid(-1, pr_uid) < 0) { in cleanup()
|
H A D | getresuid03.c | 105 * setreuid() in setup. in main() 182 if (setreuid(-1, pr_uid) < 0) { in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/mknod/ |
H A D | mknod03.c | 260 if (setreuid(-1, user1_uid) < 0) { in setup() 289 if (setreuid(-1, save_myuid) < 0) { in cleanup()
|
H A D | mknod04.c | 265 if (setreuid(-1, user1_uid) < 0) { in setup() 294 if (setreuid(-1, save_myuid) < 0) { in cleanup()
|
H A D | mknod08.c | 260 if (setreuid(-1, user1_uid) < 0) { in setup() 289 if (setreuid(-1, save_myuid) < 0) { in cleanup()
|
/third_party/musl/src/unistd/ |
H A D | setreuid.c | 5 int setreuid(uid_t ruid, uid_t euid) in setreuid() function
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount03_suid_child.c | 22 TST_EXP_FAIL(setreuid(getuid(), 0), EPERM); in main()
|
H A D | mount03_setuid_test.c | 43 status = setreuid(ruid, 0); in do_setuid()
|
/third_party/ltp/testcases/kernel/syscalls/vhangup/ |
H A D | vhangup01.c | 29 retval = setreuid(nobody_uid, nobody_uid); in run() 31 tst_brk(TBROK | TTERRNO, "setreuid failed"); in run()
|
/third_party/pulseaudio/src/daemon/ |
H A D | caps.c | 60 pa_assert_se(setreuid(uid, uid) >= 0); in pa_drop_root()
|
/third_party/libfuse/lib/ |
H A D | mount_util.c | 73 setreuid(0, -1); in mtab_needs_update() 78 setreuid(ruid, -1); in mtab_needs_update()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl18.c | 129 retval = setreuid(-1, pass->pw_uid); in main() 131 tst_resm(TFAIL, "setreuid to user nobody failed, " in main()
|
/third_party/ltp/testcases/kernel/syscalls/utils/ |
H A D | compat_tst_16.h | 124 TST_CREATE_SYSCALL(setreuid, ruid, euid); in SETREUID()
|
H A D | compat_16.h | 127 LTP_CREATE_SYSCALL(setreuid, cleanup, ruid, euid); in SETREUID()
|
/third_party/musl/porting/liteos_a/user/include/ |
H A D | unistd.h | 160 int setreuid(uid_t, uid_t);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | unistd.h | 135 int setreuid(uid_t, uid_t);
|
/third_party/musl/porting/linux/user/include/ |
H A D | unistd.h | 162 int setreuid(uid_t, uid_t);
|