Home
last modified time | relevance | path

Searched refs:gr_gid (Results 1 – 25 of 62) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid03.c33 &daemon_gr.gr_gid, &bin_gr.gr_gid, &pass, &daemon_gr, &bin_gr,
35 &neg_one, &daemon_gr.gr_gid, &pass, &daemon_gr, &daemon_gr,
37 &neg_one, &bin_gr.gr_gid, &pass, &daemon_gr, &bin_gr,
39 &bin_gr.gr_gid, &neg_one, &pass, &bin_gr, &bin_gr,
43 &neg_one, &bin_gr.gr_gid, &pass, &bin_gr, &bin_gr,
45 &bin_gr.gr_gid, &neg_one, &pass, &bin_gr, &bin_gr,
47 &bin_gr.gr_gid, &bin_gr.gr_gid, &pass, &bin_gr, &bin_gr,
49 &daemon_gr.gr_gid, &neg_one, &fail, &bin_gr, &bin_gr,
51 &neg_one, &daemon_gr.gr_gid, &fail, &bin_gr, &bin_gr,
53 &daemon_gr.gr_gid, &daemon_gr.gr_gid, &fail, &bin_gr, &bin_gr,
[all …]
Dsetregid02.c42 &neg_one, &root.gr_gid, EPERM, &ltpgroup, &ltpgroup,
44 &neg_one, &bin.gr_gid, EPERM, &ltpgroup, &ltpgroup,
46 &root.gr_gid, &neg_one, EPERM, &ltpgroup, &ltpgroup,
48 &bin.gr_gid, &neg_one, EPERM, &ltpgroup, &ltpgroup,
50 &root.gr_gid, &bin.gr_gid, EPERM, &ltpgroup, &ltpgroup,
52 &bin.gr_gid, &root.gr_gid, EPERM, &ltpgroup, &ltpgroup,
60 GID16_CHECK(ret->gr_gid, setregid); in get_group_by_name()
69 GID16_CHECK(ret->gr_gid, setregid); in get_group_by_gid()
76 if ((getgid() != rg->gr_gid) || (getegid() != eg->gr_gid)) { in gid_verify()
80 rg->gr_gid, eg->gr_gid); in gid_verify()
Dsetregid04.c32 &root_gr.gr_gid, &root_gr.gr_gid, &root_gr, &root_gr,
34 &nobody_gr.gr_gid, &neg_one, &nobody_gr, &root_gr,
36 &root_gr.gr_gid, &neg_one, &root_gr, &root_gr,
40 &neg_one, &root_gr.gr_gid, &root_gr, &root_gr,
42 &root_gr.gr_gid, &neg_one, &root_gr, &root_gr,
44 &daemon_gr.gr_gid, &nobody_gr.gr_gid, &daemon_gr, &nobody_gr,
48 &neg_one, &nobody_gr.gr_gid, &daemon_gr, &nobody_gr,
54 if ((getgid() != rg->gr_gid) || (getegid() != eg->gr_gid)) { in gid_verify()
58 rg->gr_gid, eg->gr_gid); in gid_verify()
/external/toybox/toys/posix/
Did.c108 if (flags & FLAG_g) s_or_u(grp->gr_name, grp->gr_gid, 1); in do_id()
112 showid(" gid=", grp->gr_gid, grp->gr_name); in do_id()
121 showid(" egid=", grp->gr_gid, grp->gr_name); in do_id()
125 showid(" groups=", grp->gr_gid, grp->gr_name); in do_id()
140 else if (toys.optflags&FLAG_G) s_or_u(grp->gr_name, grp->gr_gid, 0); in do_id()
141 else if (grp->gr_gid != egid) showid("", grp->gr_gid, grp->gr_name); in do_id()
/external/python/cpython2/Lib/test/
Dtest_grp.py18 self.assertEqual(value[2], value.gr_gid)
19 self.assertIsInstance(value.gr_gid, (long, int))
35 e2 = grp.getgrgid(e.gr_gid)
37 self.assertEqual(e2.gr_gid, e.gr_gid)
/external/python/cpython3/Lib/test/
Dtest_grp.py18 self.assertEqual(value[2], value.gr_gid)
19 self.assertIsInstance(value.gr_gid, int)
35 e2 = grp.getgrgid(e.gr_gid)
37 self.assertEqual(e2.gr_gid, e.gr_gid)
/external/openssh/openbsd-compat/
Dgetgrouplist.c71 if (grp->gr_gid == agroup) in getgrouplist()
74 if (groups[i] == grp->gr_gid) in getgrouplist()
84 groups[ngroups++] = grp->gr_gid; in getgrouplist()
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod02.c57 SAFE_CHOWN(TESTFILE, ltpuser->pw_uid, ltpgroup->gr_gid); in setup()
58 SAFE_SETGID(ltpgroup->gr_gid); in setup()
Dfchmod05.c65 SAFE_CHOWN(TESTDIR, ltpuser->pw_uid, ltpgroup->gr_gid); in setup()
/external/e2fsprogs/include/mingw/
Dgrp.h12 __gid_t gr_gid; member
/external/e2fsprogs/include/nonunix/
Dgrp.h12 __gid_t gr_gid; member
/external/wpa_supplicant_8/src/utils/
Dos_unix.c340 gid_t gid_wifi = grp ? grp->gr_gid : 0; in os_program_init()
361 groups[++group_idx] = grp ? grp->gr_gid : 0; in os_program_init()
365 groups[++group_idx] = grp ? grp->gr_gid : 0; in os_program_init()
369 groups[++group_idx] = grp ? grp->gr_gid : 0; in os_program_init()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod07.c78 group1_gid = ltpgroup->gr_gid; in setup()
Dchmod05.c86 SAFE_CHOWN(TESTDIR, nobody_u->pw_uid, bin_gr->gr_gid); in setup()
/external/libbrillo/brillo/
Duserdb_utils.cc51 *gid = grp->gr_gid; in GetGroupInfo()
/external/toybox/toys/pending/
Dgroupdel.c52 if (pw->pw_gid == grp->gr_gid) break; in groupdel_main()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c129 group1_gid = group->gr_gid; in main()
134 group2_gid = group->gr_gid; in main()
/external/ltp/testcases/kernel/syscalls/bind/
Dbind02.c139 gid = gr->gr_gid; in main()
/external/ltp/testcases/kernel/syscalls/open/
Dopen10.c116 group1_gid = group->gr_gid; in main()
121 group2_gid = group->gr_gid; in main()
/external/iptables/extensions/
Dlibxt_owner.c158 id = grp->gr_gid; in owner_mt_parse_v0()
205 id = grp->gr_gid; in owner_mt6_parse_v0()
264 from = to = grp->gr_gid; in owner_mt_parse()
/external/libcap/progs/old/
Dsucap.c87 gid = gr->gr_gid; in main()
/external/ltp/testcases/kernel/syscalls/getgroups/
Dgetgroups03.c104 groups[ngrps++] = grp->gr_gid; in readgroups()
/external/python/cpython2/Lib/plat-os2emx/
Dgrp.py109 self.gr_gid, self.gr_mem)
/external/python/cpython2/Modules/
Dgrpmodule.c73 SET(setIndex++, _PyInt_FromGid(p->gr_gid)); in mkgrent()
/external/python/cpython2/Doc/library/
Dgrp.rst25 | 2 | gr_gid | the numerical group ID |

123