Home
last modified time | relevance | path

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

12345

/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/openssh/
Duidswap.c83 (u_int)pw->pw_uid, (u_int)pw->pw_gid, in temporarily_use_uid()
116 if (initgroups(pw->pw_name, pw->pw_gid) == -1) in temporarily_use_uid()
145 if (setegid(pw->pw_gid) == -1) in temporarily_use_uid()
146 fatal("setegid %u: %.100s", (u_int)pw->pw_gid, in temporarily_use_uid()
212 (u_int)pw->pw_gid); in permanently_set_uid()
234 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) in permanently_set_uid()
235 fatal("setresgid %u: %.100s", (u_int)pw->pw_gid, strerror(errno)); in permanently_set_uid()
242 if (initgroups(pw->pw_name, pw->pw_gid) == -1) in permanently_set_uid()
244 pw->pw_name, (u_int)pw->pw_gid, strerror(errno)); in permanently_set_uid()
252 if (old_gid != pw->pw_gid && pw->pw_uid != 0 && in permanently_set_uid()
[all …]
Dauth.c229 if (ga_init(pw->pw_name, pw->pw_gid) == 0) { in allowed_user()
725 fake.pw_gid = privsep_pw == NULL ? (gid_t)-1 : privsep_pw->pw_gid; in fakepw()
958 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) { in subprocess()
959 error("%s: setresgid %u: %s", tag, (u_int)pw->pw_gid, in subprocess()
/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/fchmod/
Dfchmod05.c60 if (setgroups(1, &ltpuser->pw_gid) == -1) { in setup()
67 SAFE_SETEGID(ltpuser->pw_gid); in setup()
/external/ltp/testcases/kernel/syscalls/getresgid/
Dgetresgid02.c158 pe_gid = user_id->pw_gid; in setup()
161 ps_gid = user_id->pw_gid; in setup()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod05.c83 if (setgroups(1, &nobody_u->pw_gid) == -1) in setup()
89 SAFE_SETEGID(nobody_u->pw_gid); in setup()
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir02.c73 nobody_gid = pw->pw_gid; in setup()
76 bin_gid = pw->pw_gid; in setup()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid02.c117 SAFE_SETGID(ltpuser->pw_gid); in setup()
121 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.py21 self.assertEqual(e[3], e.pw_gid)
22 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.c38 setgid(pwd->pw_gid); in main()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl06_execve.c29 if (TST_RET == pw->pw_gid) in main()

12345