/external/toybox/toys/posix/ |
D | id.c | 108 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()
|
D | chgrp.c | 94 TT.group = xgetgrnamid(TT.group_name)->gr_gid; in chgrp_main()
|
D | cp.c | 507 if (TT.i.group) TT.gid = xgetgrnamid(TT.i.group)->gr_gid; in install_main()
|
D | find.c | 406 else if (*s == 'g') udl->u.gid = xgetgrnamid(ss[1])->gr_gid; in do_find()
|
/external/tlsdate/src/ |
D | util-plan9.c | 90 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()
|
D | util.c | 157 if (0 == gr->gr_gid) in get_unpriv_gid() 159 return gr->gr_gid; in get_unpriv_gid()
|
/external/avahi/avahi-autoipd/ |
D | main.c | 952 …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/ |
D | main.c | 1354 …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/ |
D | grp.h | 12 __gid_t gr_gid; member
|
/external/autotest/client/site_tests/security_SysLogPermissions/ |
D | security_SysLogPermissions.py | 19 syslog_gid = grp.getgrnam('syslog').gr_gid
|
/external/libbrillo/brillo/ |
D | userdb_utils.cc | 51 *gid = grp->gr_gid; in GetGroupInfo()
|
/external/toybox/toys/pending/ |
D | groupdel.c | 52 if (pw->pw_gid == grp->gr_gid) break; in groupdel_main()
|
D | useradd.c | 92 if (toys.optflags & FLAG_G) TT.gid = xgetgrnam(TT.u_grp)->gr_gid;
|
D | mdev.c | 156 gid = grp->gr_gid; in make_device()
|
D | tcpsvd.c | 215 if (grp) *gid = grp->gr_gid; in get_uidgid()
|
/external/iptables/extensions/ |
D | libxt_owner.c | 158 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/ |
D | sucap.c | 87 gid = gr->gr_gid; in main()
|
/external/toybox/toys/other/ |
D | makedevs.c | 82 gid = *group ? xgetgrnamid(group)->gr_gid : getgid();
|
/external/autotest/client/site_tests/login_UserPolicyKeys/ |
D | login_UserPolicyKeys.py | 44 chronos_gid = grp.getgrnam('chronos').gr_gid
|
/external/iproute2/ip/ |
D | iptuntap.c | 163 *gid = gr->gr_gid; in parse_args()
|
/external/selinux/libselinux/src/ |
D | seusers.c | 157 if (grent->gr_gid == groups[i]) { in check_group()
|
/external/squashfs-tools/squashfs-tools/ |
D | pseudo.c | 427 gid = grgid->gr_gid; in read_pseudo_def()
|
/external/libcap/progs/ |
D | capsh.c | 400 group_list[g_count] = g->gr_gid; in main()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_unix.c | 554 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/ |
D | main.c | 524 interfaces->ctrl_iface_group = grp->gr_gid; in hostapd_get_ctrl_iface_group()
|