gid 489 daemons/attrd/attrd_ipc.c attrd_ipc_accept(qb_ipcs_connection_t *c, uid_t uid, gid_t gid) gid 498 daemons/attrd/attrd_ipc.c if (pcmk__new_client(c, uid, gid) == NULL) { gid 69 daemons/based/based_callbacks.c cib_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 77 daemons/based/based_callbacks.c if (pcmk__new_client(c, uid, gid) == NULL) { gid 364 daemons/controld/controld_control.c accept_controller_client(qb_ipcs_connection_t *c, uid_t uid, gid_t gid) gid 367 daemons/controld/controld_control.c if (pcmk__new_client(c, uid, gid) == NULL) { gid 103 daemons/execd/pacemaker-execd.c lrmd_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 106 daemons/execd/pacemaker-execd.c if (pcmk__new_client(c, uid, gid) == NULL) { gid 67 daemons/execd/remoted_proxy.c ipc_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid, const char *ipc_channel) gid 75 daemons/execd/remoted_proxy.c "because not connected to cluster", uid, gid, ipc_channel); gid 82 daemons/execd/remoted_proxy.c client = pcmk__new_client(c, uid, gid); gid 107 daemons/execd/remoted_proxy.c client->id, uid, gid, ipc_channel); gid 112 daemons/execd/remoted_proxy.c crmd_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 114 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, CRM_SYSTEM_CRMD); gid 118 daemons/execd/remoted_proxy.c attrd_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 120 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, PCMK__VALUE_ATTRD); gid 124 daemons/execd/remoted_proxy.c stonith_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 126 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, "stonith-ng"); gid 130 daemons/execd/remoted_proxy.c pacemakerd_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 136 daemons/execd/remoted_proxy.c cib_proxy_accept_rw(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 138 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, PCMK__SERVER_BASED_RW); gid 142 daemons/execd/remoted_proxy.c cib_proxy_accept_ro(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 144 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, PCMK__SERVER_BASED_RO); gid 72 daemons/fenced/pacemaker-fenced.c st_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 80 daemons/fenced/pacemaker-fenced.c if (pcmk__new_client(c, uid, gid) == NULL) { gid 138 daemons/pacemakerd/pacemakerd.c pacemakerd_chown(const char *path, uid_t uid, gid_t gid) gid 140 daemons/pacemakerd/pacemakerd.c int rc = chown(path, uid, gid); gid 144 daemons/pacemakerd/pacemakerd.c path, CRM_DAEMON_USER, gid, pcmk_rc_str(errno)); gid 359 daemons/pacemakerd/pcmkd_corosync.c gid_t gid = 0; gid 360 daemons/pacemakerd/pcmkd_corosync.c if (pcmk_daemon_user(NULL, &gid) < 0) { gid 366 daemons/pacemakerd/pcmkd_corosync.c snprintf(key, PATH_MAX, "uidgid.gid.%u", gid); gid 370 daemons/pacemakerd/pcmkd_corosync.c " group=%u rc=%d", pcmk__cs_err_str(rc), gid, rc); gid 170 daemons/pacemakerd/pcmkd_messages.c pcmk_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 173 daemons/pacemakerd/pcmkd_messages.c if (pcmk__new_client(c, uid, gid) == NULL) { gid 421 daemons/pacemakerd/pcmkd_subdaemons.c gid_t gid = 0; gid 456 daemons/pacemakerd/pcmkd_subdaemons.c if ((child->uid != NULL) && (crm_user_lookup(child->uid, &uid, &gid) < 0)) { gid 472 daemons/pacemakerd/pcmkd_subdaemons.c pcmk__s(child->uid, "root"), (unsigned long) gid, child->name, gid 496 daemons/pacemakerd/pcmkd_subdaemons.c if(gid) { gid 498 daemons/pacemakerd/pcmkd_subdaemons.c if (!need_root_group && (setgid(gid) < 0)) { gid 499 daemons/pacemakerd/pcmkd_subdaemons.c crm_warn("Could not set group to %d: %s", gid, strerror(errno)); gid 505 daemons/pacemakerd/pcmkd_subdaemons.c if (initgroups(child->uid, gid) < 0) { gid 220 daemons/schedulerd/schedulerd_messages.c pe_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) gid 223 daemons/schedulerd/schedulerd_messages.c if (pcmk__new_client(c, uid, gid) == NULL) { gid 26 include/crm/common/io_internal.h uid_t uid, gid_t gid); gid 237 include/crm/common/ipc_internal.h pcmk__client_t *pcmk__new_client(qb_ipcs_connection_t *c, uid_t uid, gid_t gid); gid 103 include/crm/common/util.h int crm_user_lookup(const char *name, uid_t * uid, gid_t * gid); gid 104 include/crm/common/util.h int pcmk_daemon_user(uid_t *uid, gid_t *gid); gid 239 lib/common/io.c uid_t uid, gid_t gid) gid 248 lib/common/io.c if (chown(series_file, uid, gid) < 0) { gid 1503 lib/common/ipc_client.c found_gid = ucred.gid; gid 1522 lib/common/ipc_client.c found_gid = sockpeercred.gid; gid 24 lib/common/tests/utils/crm_user_lookup_test.c gid_t gid; gid 30 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), -ENOMEM); gid 39 lib/common/tests/utils/crm_user_lookup_test.c gid_t gid; gid 52 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), -EIO); gid 61 lib/common/tests/utils/crm_user_lookup_test.c gid_t gid; gid 74 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), -EINVAL); gid 83 lib/common/tests/utils/crm_user_lookup_test.c gid_t gid; gid 116 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(crm_user_lookup("hauser", &uid, &gid), 0); gid 118 lib/common/tests/utils/crm_user_lookup_test.c assert_int_equal(gid, 1000); gid 24 lib/common/tests/utils/pcmk_daemon_user_test.c gid_t gid; gid 37 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(pcmk_daemon_user(&uid, &gid), -ENOENT); gid 46 lib/common/tests/utils/pcmk_daemon_user_test.c gid_t gid; gid 74 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(pcmk_daemon_user(&uid, &gid), 0); gid 76 lib/common/tests/utils/pcmk_daemon_user_test.c assert_int_equal(gid, 1000); gid 83 lib/common/utils.c crm_user_lookup(const char *name, uid_t * uid, gid_t * gid) gid 100 lib/common/utils.c if (gid) { gid 101 lib/common/utils.c *gid = pwentry->pw_gid; gid 123 lib/common/utils.c pcmk_daemon_user(uid_t *uid, gid_t *gid) gid 140 lib/common/utils.c if (gid) { gid 141 lib/common/utils.c *gid = daemon_gid; gid 466 lib/services/services.c return crm_user_lookup(user, &(op->opaque->uid), &(op->opaque->gid)); gid 1033 lib/services/services_linux.c if (op->opaque->gid && (setgid(op->opaque->gid) < 0)) { gid 1036 lib/services/services_linux.c op->id, op->opaque->gid, strerror(errno)); gid 28 lib/services/services_private.h gid_t gid; gid 357 maint/gnulib/lib/acl-internal.c if (ace->uid != ACL_NSUSER && ace->gid != ACL_NSGROUP) gid 37 maint/gnulib/lib/chown.c _GL_UNUSED gid_t gid) gid 55 maint/gnulib/lib/chown.c rpl_chown (const char *file, uid_t uid, gid_t gid) gid 62 maint/gnulib/lib/chown.c if (gid != (gid_t) -1 || uid != (uid_t) -1) gid 71 maint/gnulib/lib/chown.c if (gid == (gid_t) -1 || uid == (uid_t) -1) gid 76 maint/gnulib/lib/chown.c if (gid == (gid_t) -1) gid 77 maint/gnulib/lib/chown.c gid = st.st_gid; gid 99 maint/gnulib/lib/chown.c result = fchown (fd, uid, gid); gid 131 maint/gnulib/lib/chown.c result = chown (file, uid, gid); gid 136 maint/gnulib/lib/chown.c && (gid == st.st_gid || gid == (gid_t) -1)) gid 95 maint/gnulib/lib/euidaccess.c gid_t gid = getgid (); gid 121 maint/gnulib/lib/euidaccess.c if (gid != egid) gid 122 maint/gnulib/lib/euidaccess.c setregid (egid, gid); gid 130 maint/gnulib/lib/euidaccess.c if (gid != egid) gid 131 maint/gnulib/lib/euidaccess.c setregid (gid, egid); gid 144 maint/gnulib/lib/euidaccess.c if (uid == euid && gid == egid) gid 30 maint/gnulib/lib/fchown-stub.c fchown (int fd, uid_t uid, gid_t gid) gid 42 maint/gnulib/lib/getugroups.c _GL_UNUSED gid_t gid) gid 62 maint/gnulib/lib/getugroups.c gid_t gid) gid 66 maint/gnulib/lib/getugroups.c if (gid != (gid_t) -1) gid 69 maint/gnulib/lib/getugroups.c grouplist[count] = gid; gid 19 maint/gnulib/lib/getugroups.h gid_t gid); gid 75 maint/gnulib/lib/group-member.c group_member (gid_t gid) gid 86 maint/gnulib/lib/group-member.c if (gid == gi.group[i]) gid 107 maint/gnulib/lib/group-member.c gid_t gid; gid 109 maint/gnulib/lib/group-member.c gid = atoi (argv[i]); gid 110 maint/gnulib/lib/group-member.c printf ("%d: %s\n", gid, group_member (gid) ? "yes" : "no"); gid 151 maint/gnulib/lib/idcache.c getgroup (gid_t gid) gid 158 maint/gnulib/lib/idcache.c if (tail->id.g == gid) gid 167 maint/gnulib/lib/idcache.c struct group *grent = getgrgid (gid); gid 170 maint/gnulib/lib/idcache.c match->id.g = gid; gid 25 maint/gnulib/lib/idcache.h extern char *getgroup (gid_t gid); gid 32 maint/gnulib/lib/idpriv-drop.c int gid = getgid (); gid 43 maint/gnulib/lib/idpriv-drop.c if (setresgid (gid, gid, gid) < 0) gid 46 maint/gnulib/lib/idpriv-drop.c if (setregid (gid, gid) < 0) gid 49 maint/gnulib/lib/idpriv-drop.c if (setegid (gid) < 0) gid 114 maint/gnulib/lib/idpriv-drop.c || real != gid gid 115 maint/gnulib/lib/idpriv-drop.c || effective != gid gid 116 maint/gnulib/lib/idpriv-drop.c || saved != gid) gid 121 maint/gnulib/lib/idpriv-drop.c if (getegid () != gid) gid 125 maint/gnulib/lib/idpriv-drop.c if (getgid () != gid) gid 39 maint/gnulib/lib/idpriv-droptemp.c int gid = getgid (); gid 52 maint/gnulib/lib/idpriv-droptemp.c if (setresgid (-1, gid, saved_gid) < 0) gid 55 maint/gnulib/lib/idpriv-droptemp.c if (setregid (-1, gid) < 0) gid 102 maint/gnulib/lib/idpriv-droptemp.c || real != gid gid 103 maint/gnulib/lib/idpriv-droptemp.c || effective != gid gid 109 maint/gnulib/lib/idpriv-droptemp.c if (getegid () != gid) gid 112 maint/gnulib/lib/idpriv-droptemp.c if (getgid () != gid) gid 128 maint/gnulib/lib/idpriv-droptemp.c int gid = getgid (); gid 189 maint/gnulib/lib/idpriv-droptemp.c || real != gid gid 199 maint/gnulib/lib/idpriv-droptemp.c if (getgid () != gid) gid 44 maint/gnulib/lib/lchown.c lchown (const char *file, uid_t uid, gid_t gid) gid 57 maint/gnulib/lib/lchown.c return chown (file, uid, gid); gid 71 maint/gnulib/lib/lchown.c rpl_lchown (const char *file, uid_t uid, gid_t gid) gid 79 maint/gnulib/lib/lchown.c if (gid != (gid_t) -1 || uid != (uid_t) -1) gid 85 maint/gnulib/lib/lchown.c return chown (file, uid, gid); gid 94 maint/gnulib/lib/lchown.c return chown (file, uid, gid); gid 98 maint/gnulib/lib/lchown.c result = lchown (file, uid, gid); gid 103 maint/gnulib/lib/lchown.c && (gid == st.st_gid || gid == (gid_t) -1)) gid 66 maint/gnulib/lib/mgetgroups.c mgetgroups (char const *username, gid_t gid, gid_t **groups) gid 96 maint/gnulib/lib/mgetgroups.c ng = getgrouplist (username, gid, g, &max_n_groups); gid 123 maint/gnulib/lib/mgetgroups.c ? getugroups (0, NULL, username, gid) gid 134 maint/gnulib/lib/mgetgroups.c *g = gid; gid 135 maint/gnulib/lib/mgetgroups.c return gid != (gid_t) -1; gid 140 maint/gnulib/lib/mgetgroups.c if (max_n_groups == 0 || (!username && gid != (gid_t) -1)) gid 147 maint/gnulib/lib/mgetgroups.c ? getugroups (max_n_groups, g, username, gid) gid 148 maint/gnulib/lib/mgetgroups.c : getgroups (max_n_groups - (gid != (gid_t) -1), gid 149 maint/gnulib/lib/mgetgroups.c g + (gid != (gid_t) -1))); gid 158 maint/gnulib/lib/mgetgroups.c if (!username && gid != (gid_t) -1) gid 160 maint/gnulib/lib/mgetgroups.c *g = gid; gid 19 maint/gnulib/lib/mgetgroups.h int mgetgroups (const char *username, gid_t gid, gid_t **groups); gid 21 maint/gnulib/lib/mgetgroups.h int xgetgroups (const char *username, gid_t gid, gid_t **groups); gid 44 maint/gnulib/lib/pt_chown.c gid_t gid; gid 58 maint/gnulib/lib/pt_chown.c gid = p ? p->gr_gid : getgid (); gid 62 maint/gnulib/lib/pt_chown.c if (st.st_gid != gid && chown (pty, getuid (), gid) < 0) gid 291 maint/gnulib/lib/set-permissions.c ctx->entries[0].gid = ACL_NSGROUP; gid 294 maint/gnulib/lib/set-permissions.c ctx->entries[1].gid = statbuf.st_gid; gid 297 maint/gnulib/lib/set-permissions.c ctx->entries[2].gid = ACL_NSGROUP; gid 352 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) gid 354 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); gid 357 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) gid 360 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); gid 1505 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (group_member, int, (gid_t gid)); gid 1507 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (group_member, int, (gid_t gid)); gid 103 maint/gnulib/lib/userspec.c uid_t *uid, gid_t *gid, gid 117 maint/gnulib/lib/userspec.c gid_t gnum = gid ? *gid : -1; gid 221 maint/gnulib/lib/userspec.c if (gid) gid 222 maint/gnulib/lib/userspec.c *gid = gnum; gid 259 maint/gnulib/lib/userspec.c parse_user_spec (char const *spec, uid_t *uid, gid_t *gid, gid 262 maint/gnulib/lib/userspec.c char const *colon = gid ? strchr (spec, ':') : NULL; gid 264 maint/gnulib/lib/userspec.c parse_with_separator (spec, colon, uid, gid, username, groupname); gid 266 maint/gnulib/lib/userspec.c if (gid && !colon && error_msg) gid 276 maint/gnulib/lib/userspec.c && ! parse_with_separator (spec, dot, uid, gid, username, groupname)) gid 297 maint/gnulib/lib/userspec.c gid_t gid; gid 301 maint/gnulib/lib/userspec.c e = parse_user_spec (tmp, &uid, &gid, &username, &groupname); gid 306 maint/gnulib/lib/userspec.c (unsigned long int) gid, gid 25 maint/gnulib/lib/userspec.h parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid, gid 31 maint/gnulib/lib/xgetgroups.c xgetgroups (char const *username, gid_t gid, gid_t **groups) gid 33 maint/gnulib/lib/xgetgroups.c int result = mgetgroups (username, gid, groups); gid 87 maint/gnulib/tests/test-idpriv-drop.c int gid = getgid (); gid 136 maint/gnulib/tests/test-idpriv-drop.c || real != gid gid 137 maint/gnulib/tests/test-idpriv-drop.c || effective != gid gid 138 maint/gnulib/tests/test-idpriv-drop.c || saved != gid) gid 143 maint/gnulib/tests/test-idpriv-drop.c if (getegid () != gid) gid 147 maint/gnulib/tests/test-idpriv-drop.c if (getgid () != gid) gid 90 maint/gnulib/tests/test-idpriv-droptemp.c int gid = getgid (); gid 126 maint/gnulib/tests/test-idpriv-droptemp.c if (getegid () != gid) gid 130 maint/gnulib/tests/test-idpriv-droptemp.c if (getgid () != gid) gid 153 maint/gnulib/tests/test-idpriv-droptemp.c if (getgid () != gid) gid 441 maint/gnulib/tests/test-sameacls.c if (entries1[i].gid != entries2[i].gid) gid 444 maint/gnulib/tests/test-sameacls.c file1, file2, i, (int)entries1[i].gid, (int)entries2[i].gid); gid 40 maint/gnulib/tests/test-userspec.c gid_t gid; gid 132 maint/gnulib/tests/test-userspec.c T[j].gid = gr->gr_gid; gid 143 maint/gnulib/tests/test-userspec.c gid_t gid = (gid_t) -1; gid 146 maint/gnulib/tests/test-userspec.c char const *diag = parse_user_spec (T[i].in, &uid, &gid, gid 161 maint/gnulib/tests/test-userspec.c if (uid != T[i].uid || gid != T[i].gid) gid 167 maint/gnulib/tests/test-userspec.c (unsigned long int) T[i].gid, gid 169 maint/gnulib/tests/test-userspec.c (unsigned long int) gid);