Home
last modified time | relevance | path

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

12

/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()
Dchgrp.c94 TT.group = xgetgrnamid(TT.group_name)->gr_gid; in chgrp_main()
Dcp.c507 if (TT.i.group) TT.gid = xgetgrnamid(TT.i.group)->gr_gid; in install_main()
Dfind.c406 else if (*s == 'g') udl->u.gid = xgetgrnamid(ss[1])->gr_gid; in do_find()
/external/tlsdate/src/
Dutil-plan9.c90 if (0 == gid || 0 == gr->gr_gid) in drop_privs_to()
92 if (pw->pw_gid != gr->gr_gid) in drop_privs_to()
96 if (0 != initgroups((const char *)user, gr->gr_gid)) in drop_privs_to()
Dutil.c157 if (0 == gr->gr_gid) in get_unpriv_gid()
159 return gr->gr_gid; in get_unpriv_gid()
/external/avahi/avahi-autoipd/
Dmain.c952 …group '"AVAHI_AUTOIPD_GROUP"' (GID %lu).", (unsigned long) pw->pw_uid, (unsigned long) gr->gr_gid); in drop_privs()
970 chown(AVAHI_IPDATA_DIR, pw->pw_uid, gr->gr_gid); in drop_privs()
977 if (!S_ISDIR(st.st_mode) || st.st_uid != pw->pw_uid || st.st_gid != gr->gr_gid) { in drop_privs()
1003 if (initgroups(AVAHI_AUTOIPD_USER, gr->gr_gid) != 0) { in drop_privs()
1009 r = setresgid(gr->gr_gid, gr->gr_gid, gr->gr_gid); in drop_privs()
1011 if ((r = setgid(gr->gr_gid)) >= 0) in drop_privs()
1012 r = setegid(gr->gr_gid); in drop_privs()
1014 r = setregid(gr->gr_gid, gr->gr_gid); in drop_privs()
/external/avahi/avahi-daemon/
Dmain.c1354 …lu) and group '"AVAHI_GROUP"' (GID %lu).", (unsigned long) pw->pw_uid, (unsigned long) gr->gr_gid); in drop_root()
1356 if (initgroups(AVAHI_USER, gr->gr_gid) != 0) { in drop_root()
1362 r = setresgid(gr->gr_gid, gr->gr_gid, gr->gr_gid); in drop_root()
1364 if ((r = setgid(gr->gr_gid)) >= 0) in drop_root()
1365 r = setegid(gr->gr_gid); in drop_root()
1367 r = setregid(gr->gr_gid, gr->gr_gid); in drop_root()
1439 chown(AVAHI_DAEMON_RUNTIME_DIR, pw->pw_uid, gr->gr_gid); in make_runtime_dir()
1446 if (!S_ISDIR(st.st_mode) || st.st_uid != pw->pw_uid || st.st_gid != gr->gr_gid) { in make_runtime_dir()
/external/e2fsprogs/include/nonunix/
Dgrp.h12 __gid_t gr_gid; member
/external/autotest/client/site_tests/security_SysLogPermissions/
Dsecurity_SysLogPermissions.py19 syslog_gid = grp.getgrnam('syslog').gr_gid
/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()
Duseradd.c92 if (toys.optflags & FLAG_G) TT.gid = xgetgrnam(TT.u_grp)->gr_gid;
Dmdev.c156 gid = grp->gr_gid; in make_device()
Dtcpsvd.c215 if (grp) *gid = grp->gr_gid; in get_uidgid()
/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/toybox/toys/other/
Dmakedevs.c82 gid = *group ? xgetgrnamid(group)->gr_gid : getgid();
/external/autotest/client/site_tests/login_UserPolicyKeys/
Dlogin_UserPolicyKeys.py44 chronos_gid = grp.getgrnam('chronos').gr_gid
/external/iproute2/ip/
Diptuntap.c163 *gid = gr->gr_gid; in parse_args()
/external/selinux/libselinux/src/
Dseusers.c157 if (grent->gr_gid == groups[i]) { in check_group()
/external/squashfs-tools/squashfs-tools/
Dpseudo.c427 gid = grgid->gr_gid; in read_pseudo_def()
/external/libcap/progs/
Dcapsh.c400 group_list[g_count] = g->gr_gid; in main()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_unix.c554 gid = grp->gr_gid; in wpas_ctrl_iface_open_sock()
1223 gid = grp->gr_gid; in wpas_global_ctrl_iface_open_sock()
/external/wpa_supplicant_8/hostapd/
Dmain.c524 interfaces->ctrl_iface_group = grp->gr_gid; in hostapd_get_ctrl_iface_group()

12