/external/ltp/testcases/kernel/syscalls/setresgid/ |
D | setresgid02.c | 111 {&neg, &neg, &bin.pw_gid, &root, &nobody, &bin, 113 {&neg, &bin.pw_gid, &neg, &root, &bin, &bin, 115 {&bin.pw_gid, &neg, &neg, &bin, &bin, &bin, 117 {&root.pw_gid, &root.pw_gid, &root.pw_gid, &root, &root, &root, 119 {&root.pw_gid, &nobody.pw_gid, &nobody.pw_gid, &root, &nobody, &nobody, 144 (tdat[testno].exp_rgid->pw_gid, in main() 145 tdat[testno].exp_egid->pw_gid, in main() 146 tdat[testno].exp_sgid->pw_gid)) { in main() 200 GID16_CHECK((root_gid = root.pw_gid), "setresgid", cleanup) in setup() 207 GID16_CHECK((bin_gid = bin.pw_gid), "setresgid", cleanup) in setup() [all …]
|
D | setresgid01.c | 106 {&neg, &neg, &nobody.pw_gid, &root, &root, &nobody, 108 {&neg, &nobody.pw_gid, &neg, &root, &nobody, &nobody, 110 {&nobody.pw_gid, &neg, &neg, &nobody, &nobody, &nobody, 112 {&root.pw_gid, &root.pw_gid, &root.pw_gid, &root, &root, &root, 137 (tdat[testno].exp_rgid->pw_gid, in main() 138 tdat[testno].exp_egid->pw_gid, in main() 139 tdat[testno].exp_sgid->pw_gid)) { in main() 193 GID16_CHECK((root_gid = root.pw_gid), "setresgid", cleanup) in setup() 200 GID16_CHECK((nobody_gid = nobody.pw_gid), "setresgid", cleanup) in setup()
|
D | setresgid03.c | 109 {&neg, &neg, &bin.pw_gid, &nobody, &nobody, &nobody}, 110 {&neg, &bin.pw_gid, &neg, &nobody, &nobody, &nobody}, 111 {&bin.pw_gid, &neg, &neg, &nobody, &nobody, &nobody}, 112 {&bin.pw_gid, &bin.pw_gid, &bin.pw_gid, &nobody, &nobody, &nobody}, 138 (tdat[testno].exp_rgid->pw_gid, in main() 139 tdat[testno].exp_egid->pw_gid, in main() 140 tdat[testno].exp_sgid->pw_gid)) { in main() 203 GID16_CHECK((bin_gid = bin.pw_gid), "setresgid", cleanup) in setup() 210 GID16_CHECK((nobody_gid = nobody.pw_gid), "setresgid", cleanup) in setup()
|
D | setresgid04.c | 71 GID16_CHECK(ltpuser->pw_gid, "setresgid", cleanup) in setup() 78 TEST(SETRESGID(cleanup, -1, ltpuser->pw_gid, -1)); in setresgid_verify() 89 if (ltpuser->pw_gid == buf.st_gid) { in setresgid_verify() 94 ltpuser->pw_gid, buf.st_gid); in setresgid_verify()
|
/external/openssh/ |
D | uidswap.c | 83 (u_int)pw->pw_uid, (u_int)pw->pw_gid, in temporarily_use_uid() 116 if (initgroups(pw->pw_name, pw->pw_gid) == -1) in temporarily_use_uid() 145 if (setegid(pw->pw_gid) == -1) in temporarily_use_uid() 146 fatal("setegid %u: %.100s", (u_int)pw->pw_gid, in temporarily_use_uid() 212 (u_int)pw->pw_gid); in permanently_set_uid() 234 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) in permanently_set_uid() 235 fatal("setresgid %u: %.100s", (u_int)pw->pw_gid, strerror(errno)); in permanently_set_uid() 242 if (initgroups(pw->pw_name, pw->pw_gid) == -1) in permanently_set_uid() 244 pw->pw_name, (u_int)pw->pw_gid, strerror(errno)); in permanently_set_uid() 252 if (old_gid != pw->pw_gid && pw->pw_uid != 0 && in permanently_set_uid() [all …]
|
D | auth.c | 229 if (ga_init(pw->pw_name, pw->pw_gid) == 0) { in allowed_user() 725 fake.pw_gid = privsep_pw == NULL ? (gid_t)-1 : privsep_pw->pw_gid; in fakepw() 958 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) { in subprocess() 959 error("%s: setresgid %u: %s", tag, (u_int)pw->pw_gid, in subprocess()
|
/external/ltp/testcases/kernel/syscalls/setgid/ |
D | setgid03.c | 52 TEST(SETGID(cleanup, ltpuser1pwent->pw_gid)); in main() 59 if (getgid() != ltpuser1pwent->pw_gid) { in main() 86 if (mygid != rootpwent->pw_gid) { in setup() 95 GID16_CHECK(ltpuser1pwent->pw_gid, setgid, cleanup); in setup()
|
D | setgid02.c | 61 GID16_CHECK(rootpwent->pw_gid, setgid, cleanup); in main() 63 TEST(SETGID(cleanup, rootpwent->pw_gid)); in main() 92 if (setgid(ltpuser->pw_gid) == -1) { in setup() 94 "to set the effective gid to %d", ltpuser->pw_gid); in setup()
|
/external/ltp/testcases/kernel/syscalls/setgroups/ |
D | setgroups02.c | 126 if (groups_list[i] == user_info->pw_gid) { in main() 136 "for the process", user_info->pw_gid); in main() 164 if (!GID_SIZE_CHECK(user_info->pw_gid)) { in setup() 170 groups_list[0] = user_info->pw_gid; in setup()
|
D | setgroups03.c | 206 if (!GID_SIZE_CHECK(user_info->pw_gid)) { in setup1() 211 groups_list[0] = user_info->pw_gid; in setup1()
|
/external/ltp/testcases/kernel/syscalls/getgid/ |
D | getgid03.c | 65 GID16_CHECK(pwent->pw_gid, getgid, cleanup); in main() 67 if (pwent->pw_gid != TEST_RETURN) { in main() 70 TEST_RETURN, pwent->pw_gid); in main()
|
/external/ltp/testcases/kernel/syscalls/getegid/ |
D | getegid02.c | 65 GID16_CHECK(pwent->pw_gid, getegid, cleanup); in main() 67 if (pwent->pw_gid != TEST_RETURN) { in main() 70 TEST_RETURN, pwent->pw_gid); in main()
|
/external/toybox/toys/pending/ |
D | useradd.c | 101 pwd.pw_gid = TT.gid; 105 char *s = xmprintf("-g%ld", (long)pwd.pw_gid); 108 error_msg("addgroup -g%ld fail", (long)pwd.pw_gid); 120 (long)pwd.pw_uid, (long)pwd.pw_gid, pwd.pw_gecos, pwd.pw_dir,
|
/external/ltp/testcases/kernel/syscalls/setegid/ |
D | setegid02.c | 68 TEST(setegid(ltpuser->pw_gid)); in setegid_verify() 72 ltpuser->pw_gid); in setegid_verify()
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod05.c | 60 if (setgroups(1, <puser->pw_gid) == -1) { in setup() 67 SAFE_SETEGID(ltpuser->pw_gid); in setup()
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod05.c | 83 if (setgroups(1, &nobody_u->pw_gid) == -1) in setup() 89 SAFE_SETEGID(nobody_u->pw_gid); in setup()
|
/external/ltp/testcases/kernel/syscalls/getresgid/ |
D | getresgid02.c | 158 pe_gid = user_id->pw_gid; in setup() 161 ps_gid = user_id->pw_gid; in setup()
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir02.c | 73 nobody_gid = pw->pw_gid; in setup() 76 bin_gid = pw->pw_gid; in setup()
|
/external/ltp/testcases/kernel/syscalls/setregid/ |
D | setregid02.c | 117 SAFE_SETGID(ltpuser->pw_gid); in setup() 121 ltpgroup = get_group_by_gid(ltpuser->pw_gid); in setup()
|
/external/python/cpython2/Lib/test/ |
D | test_pwd.py | 20 self.assertEqual(e[3], e.pw_gid) 21 self.assertIsInstance(e.pw_gid, (int, long))
|
/external/python/cpython3/Lib/test/ |
D | test_pwd.py | 21 self.assertEqual(e[3], e.pw_gid) 22 self.assertIsInstance(e.pw_gid, int)
|
/external/e2fsprogs/include/mingw/ |
D | pwd.h | 13 __gid_t pw_gid; member
|
/external/e2fsprogs/include/nonunix/ |
D | pwd.h | 15 __gid_t pw_gid; member
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/ |
D | 5-1.c | 38 setgid(pwd->pw_gid); in main()
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl06_execve.c | 29 if (TST_RET == pw->pw_gid) in main()
|