Home
last modified time | relevance | path

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

123

/external/ltp/testcases/kernel/syscalls/setresgid/
Dsetresgid02.c111 {&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 …]
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()
Dsetresgid03.c109 {&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()
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()
/external/ltp/testcases/kernel/syscalls/setgid/
Dsetgid03.c52 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()
Dsetgid02.c61 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/
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()
/external/ltp/testcases/kernel/syscalls/getgid/
Dgetgid03.c65 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/
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()
/external/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,
/external/ltp/testcases/kernel/syscalls/setegid/
Dsetegid02.c68 TEST(setegid(ltpuser->pw_gid)); in setegid_verify()
72 ltpuser->pw_gid); in setegid_verify()
/external/ltp/testcases/kernel/syscalls/utimes/
Dutimes01.c135 ltpuser->pw_gid); in setup()
140 ltpuser->pw_gid); in setup()
149 ltpuser->pw_gid); in setup()
/external/ltp/testcases/kernel/syscalls/getresgid/
Dgetresgid02.c159 pe_gid = user_id->pw_gid; in setup()
162 ps_gid = user_id->pw_gid; in setup()
/external/ltp/testcases/kernel/syscalls/bind/
Dbind02.c134 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/
Dchmod05.c204 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/
Dfchmod05.c197 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/
Dmkdir02.c314 nobody_gid = pw->pw_gid; in setup()
317 bin_gid = pw->pw_gid; in setup()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid02.c139 SAFE_SETGID(NULL, ltpuser->pw_gid); in setup()
143 ltpgroup = get_group_by_gid(ltpuser->pw_gid); in setup()
/external/python/cpython2/Lib/test/
Dtest_pwd.py20 self.assertEqual(e[3], e.pw_gid)
21 self.assertIsInstance(e.pw_gid, (int, long))
/external/python/cpython3/Lib/test/
Dtest_pwd.py29 self.assertEqual(e[3], e.pw_gid)
30 self.assertIsInstance(e.pw_gid, int)
/external/e2fsprogs/include/mingw/
Dpwd.h13 __gid_t pw_gid; member
/external/e2fsprogs/include/nonunix/
Dpwd.h15 __gid_t pw_gid; member
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
D5-1.c39 setgid(pwd->pw_gid); in main()
/external/autotest/client/cros/audio/
Dcmd_utils.py194 os.setgid(pw.pw_gid)
195 os.initgroups(user, pw.pw_gid)

123