Home
last modified time | relevance | path

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

123

/external/ltp/testcases/kernel/syscalls/setresgid/
Dsetresgid02.c110 {&neg, &neg, &bin.pw_gid, &root, &nobody, &bin,
112 {&neg, &bin.pw_gid, &neg, &root, &bin, &bin,
114 {&bin.pw_gid, &neg, &neg, &bin, &bin, &bin,
116 {&root.pw_gid, &root.pw_gid, &root.pw_gid, &root, &root, &root,
118 {&root.pw_gid, &nobody.pw_gid, &nobody.pw_gid, &root, &nobody, &nobody,
143 (tdat[testno].exp_rgid->pw_gid, in main()
144 tdat[testno].exp_egid->pw_gid, in main()
145 tdat[testno].exp_sgid->pw_gid)) { in main()
202 GID16_CHECK((root_gid = root.pw_gid), "setresgid", cleanup) in setup()
209 GID16_CHECK((bin_gid = bin.pw_gid), "setresgid", cleanup) in setup()
[all …]
Dsetresgid01.c105 {&neg, &neg, &nobody.pw_gid, &root, &root, &nobody,
107 {&neg, &nobody.pw_gid, &neg, &root, &nobody, &nobody,
109 {&nobody.pw_gid, &neg, &neg, &nobody, &nobody, &nobody,
111 {&root.pw_gid, &root.pw_gid, &root.pw_gid, &root, &root, &root,
136 (tdat[testno].exp_rgid->pw_gid, in main()
137 tdat[testno].exp_egid->pw_gid, in main()
138 tdat[testno].exp_sgid->pw_gid)) { in main()
195 GID16_CHECK((root_gid = root.pw_gid), "setresgid", cleanup) in setup()
202 GID16_CHECK((nobody_gid = nobody.pw_gid), "setresgid", cleanup) in setup()
Dsetresgid03.c108 {&neg, &neg, &bin.pw_gid, &nobody, &nobody, &nobody},
109 {&neg, &bin.pw_gid, &neg, &nobody, &nobody, &nobody},
110 {&bin.pw_gid, &neg, &neg, &nobody, &nobody, &nobody},
111 {&bin.pw_gid, &bin.pw_gid, &bin.pw_gid, &nobody, &nobody, &nobody},
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()
205 GID16_CHECK((bin_gid = bin.pw_gid), "setresgid", cleanup) in setup()
212 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/openssh/
Duidswap.c77 (u_int)pw->pw_uid, (u_int)pw->pw_gid, in temporarily_use_uid()
109 if (initgroups(pw->pw_name, pw->pw_gid) < 0) in temporarily_use_uid()
136 if (setegid(pw->pw_gid) < 0) in temporarily_use_uid()
137 fatal("setegid %u: %.100s", (u_int)pw->pw_gid, in temporarily_use_uid()
232 (u_int)pw->pw_gid); in permanently_set_uid()
254 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) < 0) in permanently_set_uid()
255 fatal("setresgid %u: %.100s", (u_int)pw->pw_gid, strerror(errno)); in permanently_set_uid()
262 if (initgroups(pw->pw_name, pw->pw_gid) < 0) in permanently_set_uid()
264 pw->pw_name, (u_int)pw->pw_gid, strerror(errno)); in permanently_set_uid()
272 if (old_gid != pw->pw_gid && pw->pw_uid != 0 && in permanently_set_uid()
[all …]
/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.c125 if (groups_list[i] == user_info->pw_gid) { in main()
135 "for the process", user_info->pw_gid); in main()
163 if (!GID_SIZE_CHECK(user_info->pw_gid)) { in setup()
169 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()
152 ltpuser->pw_gid); in setup()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid02.c138 if (setgid(ltpuser->pw_gid) == -1) { in setup()
141 ltpuser->pw_gid); in setup()
150 ltpgroup = get_group_by_gid(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/open/
Dopen08.c143 if (setgid(ltpuser->pw_gid) == -1) { in setup()
145 ltpuser->pw_gid); in setup()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod05.c204 if (setgroups(1, &nobody_u->pw_gid) == -1) in setup()
213 if (setegid(nobody_u->pw_gid) == -1 || seteuid(nobody_u->pw_uid) == -1) in setup()
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod05.c198 if (setgroups(1, &nobody_u->pw_gid) == -1) in setup()
208 if (setegid(nobody_u->pw_gid) == -1 || seteuid(nobody_u->pw_uid) == -1) in setup()
/external/ltp/testcases/kernel/syscalls/chown/
Dchown03.c172 if (setegid(ltpuser->pw_gid) == -1) in setup()
174 ltpuser->pw_gid); in setup()
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir02.c314 nobody_gid = pw->pw_gid; in setup()
322 bin_gid = pw->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/e2fsprogs/include/mingw/
Dpwd.h13 __gid_t pw_gid; member
/external/e2fsprogs/include/nonunix/
Dpwd.h15 __gid_t pw_gid; member

123