Home
last modified time | relevance | path

Searched refs:pw_gid (Results 1 - 25 of 99) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/setresgid/
H A 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), "setresgi in setup()
[all...]
H A 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/setgid/
H A 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()
H A 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()
/third_party/ltp/testcases/kernel/syscalls/getgid/
H A 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()
H A 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/
H A 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/
H A 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/chmod/
H A 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/ltp/testcases/kernel/syscalls/fchmod/
H A 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()
/kernel/liteos_a/testsuites/unittest/libc/sys/full/
H A Dsys_test_019.cpp61 ICUNIT_GOTO_EQUAL(user1->pw_gid, 0, -1, ERROUT); in TestCase()
69 ICUNIT_GOTO_EQUAL(pwd.pw_gid, 0, -1, ERROUT); in TestCase()
79 ICUNIT_GOTO_EQUAL(user2->pw_gid, 1, -1, ERROUT); in TestCase()
89 ICUNIT_GOTO_EQUAL(user3->pw_gid, 2, -1, ERROUT); /* 2, from etc/group */ in TestCase()
H A Dsys_test_021.cpp61 ICUNIT_GOTO_EQUAL(user1->pw_gid, 0, -1, ERROUT); in TestCase()
69 ICUNIT_GOTO_EQUAL(pwd.pw_gid, 0, -1, ERROUT); in TestCase()
80 ICUNIT_GOTO_EQUAL(user2->pw_gid, 1, -1, ERROUT); in TestCase()
91 ICUNIT_GOTO_EQUAL(user3->pw_gid, 2, -1, ERROUT); /* 2, from etc/group */ in TestCase()
H A Dsys_test_018.cpp56 ICUNIT_GOTO_EQUAL(user1->pw_gid, 0, -1, ERROUT); in TestCase()
66 ICUNIT_GOTO_EQUAL(user2->pw_gid, 1, -1, ERROUT); in TestCase()
77 ICUNIT_GOTO_EQUAL(user3->pw_gid, 2, -1, ERROUT); /* 2, from etc/group */ in TestCase()
H A Dsys_test_020.cpp56 ICUNIT_GOTO_EQUAL(user1->pw_gid, 0, -1, ERROUT); in TestCase()
66 ICUNIT_GOTO_EQUAL(user2->pw_gid, 1, -1, ERROUT); in TestCase()
76 ICUNIT_GOTO_EQUAL(user3->pw_gid, 2, -1, ERROUT); /* 2, from etc/group */ in TestCase()
H A Dsys_test_022.cpp54 ICUNIT_GOTO_EQUAL(user1->pw_gid, 0, -1, ERROUT); in TestCase()
64 ICUNIT_GOTO_EQUAL(user1->pw_gid, 1, -1, ERROUT); in TestCase()
74 ICUNIT_GOTO_EQUAL(user1->pw_gid, 2, -1, ERROUT); /* 2, from etc/group */ in TestCase()
/third_party/ltp/testcases/kernel/syscalls/creat/
H A Dcreat09.c74 (int)ltpuser->pw_gid); in setup()
75 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup()
92 SAFE_SETGID(ltpuser->pw_gid); in setup()
/third_party/ltp/testcases/kernel/syscalls/setegid/
H A Dsetegid02.c29 TST_EXP_FAIL(setegid(ltpuser->pw_gid), in setegid_verify()
32 ltpuser->pw_gid); in setegid_verify()
/third_party/toybox/toys/pending/
H A Duseradd.c101 pwd.pw_gid = TT.gid; in useradd_main()
105 char *s = xmprintf("-g%ld", (long)pwd.pw_gid); in useradd_main()
108 error_msg("addgroup -g%ld fail", (long)pwd.pw_gid); in useradd_main()
120 (long)pwd.pw_uid, (long)pwd.pw_gid, pwd.pw_gecos, pwd.pw_dir, in useradd_main()
/third_party/pulseaudio/src/tests/
H A Dusergroup-test.c97 if (a->pw_gid != b->pw_gid) { in compare_passwd()
98 fprintf(stderr, "pw_gid mismatch: [%lu] [%lu]\n", (unsigned long) a->pw_gid, (unsigned long) b->pw_gid); in compare_passwd()
/third_party/ltp/testcases/kernel/syscalls/openat/
H A Dopenat04.c93 (int)ltpuser->pw_gid); in setup()
94 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup()
114 SAFE_SETGID(ltpuser->pw_gid); in setup()
/third_party/ltp/testcases/kernel/syscalls/getresgid/
H A Dgetresgid02.c158 pe_gid = user_id->pw_gid; in setup()
161 ps_gid = user_id->pw_gid; in setup()
/third_party/cups-filters/backend/
H A Dcups-brf.c83 if (setgid(pw->pw_gid)) { in main()
84 fprintf(stderr, "ERROR: turning gid into %u\n", pw->pw_gid); in main()
/third_party/ltp/testcases/kernel/syscalls/setregid/
H A Dsetregid02.c99 nobody_gid = test_groups[0] = ltpuser->pw_gid; in setup()
108 SAFE_SETGID(ltpuser->pw_gid); in setup()
/third_party/musl/src/passwd/
H A Dputpwent.c8 pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, in putpwent()
/third_party/python/Lib/test/
H A Dtest_pwd.py21 self.assertEqual(e[3], e.pw_gid)
22 self.assertIsInstance(e.pw_gid, int)

Completed in 6 milliseconds

1234