/third_party/ltp/testcases/kernel/syscalls/setresgid/ |
H A D | setresgid01.c | 106 {&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 D | setresgid04.c | 71 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 D | setgid02.c | 28 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 D | setgid03.c | 21 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 D | getgid03.c | 34 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 D | getgid01.c | 23 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 D | getegid02.c | 65 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 D | mkdir02.c | 56 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 D | chmod05.c | 76 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 D | fchmod05.c | 57 free_gid = tst_get_free_gid(ltpuser->pw_gid); in setup() 61 if (setgroups(1, <puser->pw_gid) == -1) { in setup() 68 SAFE_SETEGID(ltpuser->pw_gid); in setup()
|
/kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
H A D | sys_test_019.cpp | 61 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 D | sys_test_021.cpp | 61 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 D | sys_test_018.cpp | 56 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 D | sys_test_020.cpp | 56 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 D | sys_test_022.cpp | 54 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 D | creat09.c | 74 (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 D | setegid02.c | 29 TST_EXP_FAIL(setegid(ltpuser->pw_gid), in setegid_verify() 32 ltpuser->pw_gid); in setegid_verify()
|
/third_party/toybox/toys/pending/ |
H A D | useradd.c | 101 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 D | usergroup-test.c | 97 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 D | openat04.c | 93 (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 D | getresgid02.c | 158 pe_gid = user_id->pw_gid; in setup() 161 ps_gid = user_id->pw_gid; in setup()
|
/third_party/cups-filters/backend/ |
H A D | cups-brf.c | 83 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 D | setregid02.c | 99 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 D | putpwent.c | 8 pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, in putpwent()
|
/third_party/python/Lib/test/ |
H A D | test_pwd.py | 21 self.assertEqual(e[3], e.pw_gid) 22 self.assertIsInstance(e.pw_gid, int)
|