/third_party/ltp/testcases/kernel/syscalls/setresgid/ |
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 | 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()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/setgid/ |
D | setgid03.c | 21 TST_EXP_PASS(SETGID(nobody->pw_gid)); in run() 23 if (getgid() != nobody->pw_gid) in run() 32 GID16_CHECK(nobody->pw_gid, setgid); in setup()
|
D | setgid02.c | 28 GID16_CHECK(rootpwent->pw_gid, setgid); in run() 30 TST_EXP_FAIL(SETGID(rootpwent->pw_gid), EPERM); in run() 37 SAFE_SETGID(nobody->pw_gid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/getgid/ |
D | getgid03.c | 34 GID16_CHECK(pwent->pw_gid, getgid); in run() 36 if (pwent->pw_gid != TST_RET) { in run() 39 TST_RET, pwent->pw_gid); in run()
|
D | getgid01.c | 23 if (TST_RET != ltpuser->pw_gid) in run() 32 SAFE_SETGID(ltpuser->pw_gid); in setup()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir02.c | 56 free_gid = tst_get_free_gid(pw->pw_gid); in setup() 63 SAFE_SETREGID(pw->pw_gid, pw->pw_gid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod05.c | 57 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup() 61 if (setgroups(1, <puser->pw_gid) == -1) { in setup() 68 SAFE_SETEGID(ltpuser->pw_gid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod05.c | 76 free_gid = tst_get_free_gid(nobody_u->pw_gid); in setup() 84 if (setgroups(1, &nobody_u->pw_gid) == -1) in setup() 90 SAFE_SETEGID(nobody_u->pw_gid); in setup()
|
/third_party/pulseaudio/src/tests/ |
D | usergroup-test.c | 97 if (a->pw_gid != b->pw_gid) { in compare_passwd() 98 …tf(stderr, "pw_gid mismatch: [%lu] [%lu]\n", (unsigned long) a->pw_gid, (unsigned long) b->pw_gid); in compare_passwd()
|
/third_party/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,
|
/third_party/ltp/testcases/kernel/syscalls/creat/ |
D | creat09.c | 56 (int)ltpuser->pw_gid); in setup() 57 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup() 74 SAFE_SETGID(ltpuser->pw_gid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setegid/ |
D | setegid02.c | 68 TEST(setegid(ltpuser->pw_gid)); in setegid_verify() 72 ltpuser->pw_gid); in setegid_verify()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/setregid/ |
D | setregid02.c | 99 nobody_gid = test_groups[0] = ltpuser->pw_gid; in setup() 108 SAFE_SETGID(ltpuser->pw_gid); in setup()
|
/third_party/python/Lib/test/ |
D | test_pwd.py | 21 self.assertEqual(e[3], e.pw_gid) 22 self.assertIsInstance(e.pw_gid, int)
|
/third_party/e2fsprogs/include/mingw/ |
D | pwd.h | 13 __gid_t pw_gid; member
|
/third_party/musl/src/passwd/ |
D | putpwent.c | 8 pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, in putpwent()
|
/third_party/e2fsprogs/include/nonunix/ |
D | pwd.h | 15 __gid_t pw_gid; member
|
/third_party/gettext/gettext-tools/misc/ |
D | cvsuser.c | 51 pw.pw_gid = 100; in getpwnam()
|
/third_party/musl/ndk_musl_include/ |
D | pwd.h | 24 gid_t pw_gid; member
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/ |
D | 5-1.c | 38 if (setgid(pwd->pw_gid)) { in main()
|