/third_party/ltp/testcases/kernel/syscalls/setresuid/ |
H A D | setresuid03.c | 11 * Test that the setresuid system call sets the proper errno values when 34 &main_uid, "setresuid(other, -1, -1)"}, 36 &main_uid, "setresuid(-1, -1, other)"}, 38 &main_uid, "setresuid(-1, other, -1)"} 50 UID16_CHECK(root_uid, setresuid); in setup() 51 UID16_CHECK(main_uid, setresuid); in setup() 52 UID16_CHECK(other_uid, setresuid); in setup()
|
H A D | setresuid01.c | 11 * Test setresuid() when executed by root. 30 "After setresuid(-1, -1, -1),"}, 32 "After setresuid(-1, -1, main),"}, 34 "After setresuid(-1, other, -1),"}, 36 "After setresuid(-1, -1, root),"}, 38 "After setresuid(-1, -1, other),"}, 40 "After setresuid(-1, root, -1),"}, 42 "After setresuid(main, -1, -1)"}, 44 "After setresuid(-1, root, -1),"}, 46 "After setresuid(roo [all...] |
H A D | setresuid02.c | 12 * values through the setresuid system call. 35 "setresuid(-1, -1, other)"}, 37 "setresuid(-1, nobody -1)"}, 39 "setresuid(other, -1 -1)"}, 42 &nobody_uid, "setresuid(nobody, other, nobody)"}, 54 UID16_CHECK(nobody_uid, setresuid); in setup() 55 UID16_CHECK(other_uid, setresuid); in setup()
|
/third_party/pulseaudio/src/daemon/ |
H A D | caps.c | 42 int setresuid(uid_t r, uid_t e, uid_t s); 57 pa_assert_se(setresuid(uid, uid, uid) >= 0); in pa_drop_root()
|
H A D | main.c | 320 r = setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid); in change_user()
|
H A D | ohos_pa_main.c | 323 r = setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid); in change_user()
|
/third_party/ltp/testcases/kernel/syscalls/utils/ |
H A D | compat_tst_16.h | 32 int setresuid(uid_t ruid, uid_t euid, uid_t suid); 133 TST_CREATE_SYSCALL(setresuid, ruid, euid, suid); in SETRESUID()
|
H A D | compat_16.h | 35 int setresuid(uid_t ruid, uid_t euid, uid_t suid); 136 LTP_CREATE_SYSCALL(setresuid, cleanup, ruid, euid, suid); in SETRESUID()
|
/third_party/musl/src/unistd/ |
H A D | setresuid.c | 6 int setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid() function
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | setresuid.c | 22 * @tc.desc : Test calling setresuid to set the real, effective and saved user or group ID 28 int result = setresuid(uid, uid, uid); in setresuid_0100() 30 t_error("%s setresuid error get result is %d are not 0\n", __func__, result); in setresuid_0100()
|
/third_party/ltp/testcases/kernel/syscalls/getresuid/ |
H A D | getresuid03.c | 25 * and saved user ids after calling process invokes setresuid() to change 167 if (setresuid(-1, pe_uid, -1) < 0) { in setup() 169 "setresuid(-1, %d, -1) Fails, errno:%d : %s", in setup()
|
/third_party/ntfs-3g/libfuse-lite/ |
H A D | fusermount.c | 108 if (setresuid(-1, new_uid, geteuid()) < 0) { in drop_privs() 109 perror("priv drop: setresuid failed"); in drop_privs() 131 if (setresuid(-1, suid, -1) < 0) { in restore_privs() 132 perror("priv restore: setresuid failed"); in restore_privs()
|
/third_party/ltp/testcases/kernel/containers/utsname/ |
H A D | utstest.c | 85 ret = setresuid(1000, 1000, 1000); in drop_root() 87 perror("setresuid"); in drop_root()
|
/third_party/musl/porting/liteos_a/user/include/ |
H A D | unistd.h | 208 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | unistd.h | 183 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/musl/porting/linux/user/include/ |
H A D | unistd.h | 210 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | unistd.h | 208 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | unistd.h | 183 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | unistd.h | 188 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | unistd.h | 183 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/ltp/testcases/kernel/security/filecaps/ |
H A D | verify_caps_exec.c | 81 ret = setresuid(1000, 1000, 1000); in drop_root()
|
/third_party/musl/include/ |
H A D | unistd.h | 247 int setresuid(uid_t, uid_t, uid_t);
|
/third_party/ltp/lib/ |
H A D | tst_safe_macros.c | 212 ret = setresuid(ruid, euid, suid); in safe_setresuid()
|
/third_party/python/Lib/test/ |
H A D | test_posix.py | 95 @unittest.skipUnless(hasattr(posix, 'setresuid'), 96 'test needs posix.setresuid()') 99 self.assertIsNone(posix.setresuid(*current_user_ids)) 101 self.assertIsNone(posix.setresuid(-1, -1, -1)) 103 @unittest.skipUnless(hasattr(posix, 'setresuid'), 104 'test needs posix.setresuid()') 110 self.assertRaises(OSError, posix.setresuid, *new_user_ids)
|
/third_party/libfuse/util/ |
H A D | fusermount.c | 1248 if(setresuid(uid, uid, uid) == -1) { in recheck_ENOTCONN_as_owner()
|