Home
last modified time | relevance | path

Searched refs:pw_gid (Results 1 – 25 of 76) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/setresgid/
Dsetresgid01.c106 {&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()
Dsetresgid04.c71 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/
Dsetgroups02.c126 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()
Dsetgroups03.c206 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/
Dsetgid03.c21 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()
Dsetgid02.c28 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/
Dgetgid03.c34 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()
Dgetgid01.c23 if (TST_RET != ltpuser->pw_gid) in run()
32 SAFE_SETGID(ltpuser->pw_gid); in setup()
/third_party/ltp/testcases/kernel/syscalls/getegid/
Dgetegid02.c65 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/
Dmkdir02.c56 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/
Dfchmod05.c57 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup()
61 if (setgroups(1, &ltpuser->pw_gid) == -1) { in setup()
68 SAFE_SETEGID(ltpuser->pw_gid); in setup()
/third_party/ltp/testcases/kernel/syscalls/chmod/
Dchmod05.c76 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/
Dusergroup-test.c97 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/
Duseradd.c101 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/
Dcreat09.c56 (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/
Dsetegid02.c68 TEST(setegid(ltpuser->pw_gid)); in setegid_verify()
72 ltpuser->pw_gid); in setegid_verify()
/third_party/ltp/testcases/kernel/syscalls/getresgid/
Dgetresgid02.c158 pe_gid = user_id->pw_gid; in setup()
161 ps_gid = user_id->pw_gid; in setup()
/third_party/ltp/testcases/kernel/syscalls/setregid/
Dsetregid02.c99 nobody_gid = test_groups[0] = ltpuser->pw_gid; in setup()
108 SAFE_SETGID(ltpuser->pw_gid); in setup()
/third_party/python/Lib/test/
Dtest_pwd.py21 self.assertEqual(e[3], e.pw_gid)
22 self.assertIsInstance(e.pw_gid, int)
/third_party/e2fsprogs/include/mingw/
Dpwd.h13 __gid_t pw_gid; member
/third_party/musl/src/passwd/
Dputpwent.c8 pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, in putpwent()
/third_party/e2fsprogs/include/nonunix/
Dpwd.h15 __gid_t pw_gid; member
/third_party/gettext/gettext-tools/misc/
Dcvsuser.c51 pw.pw_gid = 100; in getpwnam()
/third_party/musl/ndk_musl_include/
Dpwd.h24 gid_t pw_gid; member
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
D5-1.c38 if (setgid(pwd->pw_gid)) { in main()

1234