/external/ltp/testcases/kernel/syscalls/setreuid/ |
D | setreuid03.c | 58 &nobody.pw_uid, &nobody.pw_uid, &pass, &nobody, &nobody, 60 &neg_one, &nobody.pw_uid, &pass, &nobody, &nobody, 62 &nobody.pw_uid, &neg_one, &pass, &nobody, &nobody, 66 &neg_one, &root.pw_uid, &fail, &nobody, &nobody, 68 &root.pw_uid, &neg_one, &fail, &nobody, &nobody, 70 &root.pw_uid, &root.pw_uid, &fail, &nobody, &nobody, 72 &root.pw_uid, &nobody.pw_uid, &fail, &nobody, &nobody, 74 &root.pw_uid, &bin.pw_uid, &fail, &nobody, &nobody, 76 &bin.pw_uid, &root.pw_uid, &fail, &nobody, &nobody, 78 &bin.pw_uid, &neg_one, &fail, &nobody, &nobody, [all …]
|
D | setreuid05.c | 51 &nobody.pw_uid, &root.pw_uid, &pass, &nobody, &root, "Initially"}, { 52 &neg_one, &nobody.pw_uid, &pass, &nobody, &nobody, 54 &neg_one, &root.pw_uid, &pass, &nobody, &root, 56 &daemonpw.pw_uid, &neg_one, &pass, &daemonpw, &root, 58 &neg_one, &bin.pw_uid, &pass, &daemonpw, &bin, 60 &neg_one, &root.pw_uid, &fail, &daemonpw, &bin, 62 &neg_one, &nobody.pw_uid, &fail, &daemonpw, &bin, 64 &neg_one, &daemonpw.pw_uid, &pass, &daemonpw, &daemonpw, 66 &neg_one, &bin.pw_uid, &pass, &daemonpw, &bin, 68 &bin.pw_uid, &daemonpw.pw_uid, &pass, &bin, &daemonpw, [all …]
|
D | setreuid02.c | 52 &nobody.pw_uid, &neg_one, &nobody, &root, "After setreuid(nobody, -1)"}, 54 &root.pw_uid, &neg_one, &root, &root, "After setreuid(root,-1),"}, { 55 &neg_one, &daemonpw.pw_uid, &root, &daemonpw, 57 &neg_one, &root.pw_uid, &root, &root, "After setreuid(-1,root),"}, { 58 &bin.pw_uid, &neg_one, &bin, &root, "After setreuid(bin, -1)"}, { 59 &root.pw_uid, &neg_one, &root, &root, "After setreuid(-1, root)"},}; 116 UID16_CHECK(root.pw_uid, setreuid, cleanup); in setup() 119 UID16_CHECK(nobody.pw_uid, setreuid, cleanup); in setup() 122 UID16_CHECK(daemonpw.pw_uid, setreuid, cleanup); in setup() 125 UID16_CHECK(bin.pw_uid, setreuid, cleanup); in setup() [all …]
|
D | setreuid04.c | 54 &nobody.pw_uid, &nobody.pw_uid, &nobody, &nobody, 121 UID16_CHECK(root.pw_uid, setreuid, cleanup); in setup() 124 UID16_CHECK(nobody.pw_uid, setreuid, cleanup); in setup() 135 if ((getuid() != ru->pw_uid) || (geteuid() != eu->pw_uid)) { in uid_verify() 139 ru->pw_uid, eu->pw_uid); in uid_verify()
|
/external/openssh/ |
D | uidswap.c | 83 (u_int)pw->pw_uid, (u_int)pw->pw_gid, in temporarily_use_uid() 115 if (user_groupslen == -1 || user_groups_uid != pw->pw_uid) { in temporarily_use_uid() 132 user_groups_uid = pw->pw_uid; in temporarily_use_uid() 148 if (seteuid(pw->pw_uid) == -1) in temporarily_use_uid() 149 fatal("seteuid %u: %.100s", (u_int)pw->pw_uid, in temporarily_use_uid() 211 debug("permanently_set_uid: %u/%u", (u_int)pw->pw_uid, in permanently_set_uid() 215 if (pw->pw_uid == AID_SHELL) { in permanently_set_uid() 247 if (setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1) in permanently_set_uid() 248 fatal("setresuid %u: %.100s", (u_int)pw->pw_uid, strerror(errno)); in permanently_set_uid() 252 if (old_gid != pw->pw_gid && pw->pw_uid != 0 && in permanently_set_uid() [all …]
|
D | sshpty.c | 192 if (st.st_uid != pw->pw_uid || st.st_gid != gid) { in pty_setowner() 193 if (chown(tty, pw->pw_uid, gid) == -1) { in pty_setowner() 195 (st.st_uid == pw->pw_uid || st.st_uid == 0)) in pty_setowner() 197 tty, (u_int)pw->pw_uid, (u_int)gid, in pty_setowner() 201 tty, (u_int)pw->pw_uid, (u_int)gid, in pty_setowner()
|
/external/ltp/testcases/kernel/syscalls/setresuid/ |
D | setresuid01.c | 179 UID16_CHECK((root_pw_uid = root.pw_uid), "setresuid", cleanup) in setup() 182 UID16_CHECK((nobody_pw_uid = nobody.pw_uid), "setresuid", cleanup) in setup() 185 UID16_CHECK((bin_pw_uid = bin.pw_uid), "setresuid", cleanup) in setup() 210 if ((cur_ru != ru->pw_uid) || (cur_eu != eu->pw_uid) || (cur_su != in uid_verify() 211 su->pw_uid)) { in uid_verify() 215 "saved uid = %d", ru->pw_uid, eu->pw_uid, su->pw_uid); in uid_verify()
|
D | setresuid03.c | 200 UID16_CHECK((root_pw_uid = root.pw_uid), "setresuid", cleanup) in setup() 203 UID16_CHECK((nobody_pw_uid = nobody.pw_uid), "setresuid", cleanup) in setup() 206 UID16_CHECK((bin_pw_uid = bin.pw_uid), "setresuid", cleanup) in setup() 234 if ((cur_ru != ru->pw_uid) || (cur_eu != eu->pw_uid) || (cur_su != in uid_verify() 235 su->pw_uid)) { in uid_verify() 239 "saved uid = %d", ru->pw_uid, eu->pw_uid, su->pw_uid); in uid_verify()
|
D | setresuid02.c | 190 UID16_CHECK((nobody_pw_uid = nobody.pw_uid), "setresuid", cleanup) in setup() 193 UID16_CHECK((bin_pw_uid = bin.pw_uid), "setresuid", cleanup) in setup() 221 if ((cur_ru != ru->pw_uid) || (cur_eu != eu->pw_uid) || (cur_su != in uid_verify() 222 su->pw_uid)) { in uid_verify() 226 "saved uid = %d", ru->pw_uid, eu->pw_uid, su->pw_uid); in uid_verify()
|
D | setresuid05.c | 71 UID16_CHECK(ltpuser->pw_uid, "setresuid", cleanup) in setup() 78 TEST(SETRESUID(cleanup, -1, ltpuser->pw_uid, -1)); in setresuid_verify() 89 if (ltpuser->pw_uid == buf.st_uid) { in setresuid_verify() 94 ltpuser->pw_uid, buf.st_uid); in setresuid_verify()
|
/external/ltp/testcases/kernel/syscalls/kill/ |
D | kill05.c | 163 if (setreuid(ltpuser1->pw_uid, ltpuser1->pw_uid) == -1) { in do_master_child() 178 if (setreuid(ltpuser2->pw_uid, ltpuser2->pw_uid) == -1) { in do_master_child()
|
/external/python/cpython2/Lib/test/ |
D | test_pwd.py | 18 self.assertEqual(e[2], e.pw_uid) 19 self.assertIsInstance(e.pw_uid, (int, long)) 45 entriesbyuid.setdefault(e.pw_uid, []).append(e) 53 self.assertIn(pwd.getpwuid(e.pw_uid), entriesbyuid[e.pw_uid])
|
/external/python/cpython3/Lib/test/ |
D | test_pwd.py | 19 self.assertEqual(e[2], e.pw_uid) 20 self.assertIsInstance(e.pw_uid, int) 46 entriesbyuid.setdefault(e.pw_uid, []).append(e) 54 self.assertIn(pwd.getpwuid(e.pw_uid), entriesbyuid[e.pw_uid])
|
/external/openssh/openbsd-compat/ |
D | port-irix.c | 61 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); in irix_setusercontext() 84 debug("Setting sat id to %d", (int) pw->pw_uid); in irix_setusercontext() 85 if (satsetid(pw->pw_uid)) in irix_setusercontext()
|
/external/ltp/testcases/kernel/syscalls/getuid/ |
D | getuid03.c | 64 UID16_CHECK(pwent->pw_uid, getuid, cleanup); in main() 66 if (pwent->pw_uid != TEST_RETURN) in main() 69 "value, %ld", pwent->pw_uid, in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
D | 9-1.c | 49 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main() 57 if (seteuid(pw->pw_uid) != 0) { in main() 67 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
|
D | 8-1.c | 63 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main() 71 if (seteuid(pw->pw_uid) != 0) { in main() 81 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
|
/external/ltp/testcases/kernel/syscalls/geteuid/ |
D | geteuid02.c | 56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup); in main() 57 if (pwent->pw_uid != TEST_RETURN) in main() 60 "value, %ld", pwent->pw_uid, in main()
|
/external/ltp/testcases/kernel/syscalls/mlockall/ |
D | mlockall02.c | 196 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test() 200 ltpuser->pw_uid, TEST_ERRNO, in setup_test() 219 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test() 222 ltpuser->pw_uid, TEST_ERRNO, in setup_test()
|
D | mlockall03.c | 222 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test() 225 ltpuser->pw_uid, TEST_ERRNO, in setup_test() 252 if (seteuid(ltpuser->pw_uid) == -1) { in setup_test() 255 ltpuser->pw_uid, TEST_ERRNO, in setup_test()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
D | 26-2.c | 73 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) in main() 82 if (seteuid(pw->pw_uid) != 0) { in main() 93 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid); in main()
|
/external/toybox/toys/posix/ |
D | id.c | 102 uid = euid = pw->pw_uid; in do_id() 108 if (FLAG(u)) showone("", pw->pw_name, pw->pw_uid, 1); in do_id() 130 showid("uid=", pw->pw_uid, pw->pw_name); in do_id() 136 showid(" euid=", pw->pw_uid, pw->pw_name); in do_id()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
D | 6-1.c | 38 if (pw->pw_uid != 0) in set_nonroot() 55 if (setuid(pw->pw_uid) != 0) { in set_nonroot()
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir04.c | 46 nobody_uid = pw->pw_uid; in setup() 48 bin_uid = pw->pw_uid; in setup()
|
/external/libwebsockets/lib/plat/unix/ |
D | unix-caps.c | 85 *puid = p->pw_uid; in lws_plat_user_colon_group_to_ids() 119 context->uid = p->pw_uid; in lws_plat_drop_app_privileges() 122 context->username, (unsigned int)p->pw_uid); in lws_plat_drop_app_privileges()
|