/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/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/utimes/ |
D | utimes01.c | 135 ltpuser->pw_gid); in setup() 140 ltpuser->pw_gid); in setup() 149 ltpuser->pw_gid); in setup()
|
/external/ltp/testcases/kernel/syscalls/getresgid/ |
D | getresgid02.c | 159 pe_gid = user_id->pw_gid; in setup() 162 ps_gid = user_id->pw_gid; in setup()
|
/external/ltp/testcases/kernel/syscalls/bind/ |
D | bind02.c | 134 if ((gr = getgrgid(pw->pw_gid)) == NULL) { in main() 135 tst_brkm(TBROK | TERRNO, 0, "getgrgid(%u) failed", pw->pw_gid); in main()
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod05.c | 204 if (setgroups(1, &nobody_u->pw_gid) == -1) in setup() 211 if (setegid(nobody_u->pw_gid) == -1 || seteuid(nobody_u->pw_uid) == -1) in setup()
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod05.c | 197 if (setgroups(1, &nobody_u->pw_gid) == -1) in setup() 205 if (setegid(nobody_u->pw_gid) == -1 || seteuid(nobody_u->pw_uid) == -1) in setup()
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir02.c | 314 nobody_gid = pw->pw_gid; in setup() 317 bin_gid = pw->pw_gid; in setup()
|
/external/ltp/testcases/kernel/syscalls/setregid/ |
D | setregid02.c | 139 SAFE_SETGID(NULL, ltpuser->pw_gid); in setup() 143 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 | 29 self.assertEqual(e[3], e.pw_gid) 30 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 | 39 setgid(pwd->pw_gid); in main()
|
/external/autotest/client/cros/audio/ |
D | cmd_utils.py | 194 os.setgid(pw.pw_gid) 195 os.initgroups(user, pw.pw_gid)
|