uid 137 daemons/attrd/attrd_utils.c attrd_ipc_accept(qb_ipcs_connection_t *c, uid_t uid, gid_t gid) uid 146 daemons/attrd/attrd_utils.c if (pcmk__new_client(c, uid, gid) == NULL) { uid 70 daemons/based/based_callbacks.c cib_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 78 daemons/based/based_callbacks.c if (pcmk__new_client(c, uid, gid) == NULL) { uid 360 daemons/controld/controld_control.c accept_controller_client(qb_ipcs_connection_t *c, uid_t uid, gid_t gid) uid 363 daemons/controld/controld_control.c if (pcmk__new_client(c, uid, gid) == NULL) { uid 82 daemons/execd/pacemaker-execd.c lrmd_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 85 daemons/execd/pacemaker-execd.c if (pcmk__new_client(c, uid, gid) == NULL) { uid 67 daemons/execd/remoted_proxy.c ipc_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid, const char *ipc_channel) uid 75 daemons/execd/remoted_proxy.c "because not connected to cluster", uid, gid, ipc_channel); uid 82 daemons/execd/remoted_proxy.c client = pcmk__new_client(c, uid, gid); uid 107 daemons/execd/remoted_proxy.c client->id, uid, gid, ipc_channel); uid 112 daemons/execd/remoted_proxy.c crmd_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 114 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, CRM_SYSTEM_CRMD); uid 118 daemons/execd/remoted_proxy.c attrd_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 120 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, T_ATTRD); uid 124 daemons/execd/remoted_proxy.c stonith_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 126 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, "stonith-ng"); uid 130 daemons/execd/remoted_proxy.c pacemakerd_proxy_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 136 daemons/execd/remoted_proxy.c cib_proxy_accept_rw(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 138 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, PCMK__SERVER_BASED_RW); uid 142 daemons/execd/remoted_proxy.c cib_proxy_accept_ro(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 144 daemons/execd/remoted_proxy.c return ipc_proxy_accept(c, uid, gid, PCMK__SERVER_BASED_RO); uid 72 daemons/fenced/pacemaker-fenced.c st_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 80 daemons/fenced/pacemaker-fenced.c if (pcmk__new_client(c, uid, gid) == NULL) { uid 130 daemons/pacemakerd/pacemakerd.c mcp_chown(const char *path, uid_t uid, gid_t gid) uid 132 daemons/pacemakerd/pacemakerd.c int rc = chown(path, uid, gid); uid 113 daemons/pacemakerd/pcmkd_messages.c pcmk_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 116 daemons/pacemakerd/pcmkd_messages.c if (pcmk__new_client(c, uid, gid) == NULL) { uid 31 daemons/pacemakerd/pcmkd_subdaemons.c const char *uid; uid 370 daemons/pacemakerd/pcmkd_subdaemons.c uid_t uid = 0; uid 405 daemons/pacemakerd/pcmkd_subdaemons.c if (child->uid) { uid 406 daemons/pacemakerd/pcmkd_subdaemons.c if (crm_user_lookup(child->uid, &uid, &gid) < 0) { uid 407 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("Invalid user (%s) for %s: not found", child->uid, child->name); uid 410 daemons/pacemakerd/pcmkd_subdaemons.c crm_info("Using uid=%u and group=%u for process %s", uid, gid, child->name); uid 464 daemons/pacemakerd/pcmkd_subdaemons.c if (initgroups(child->uid, gid) < 0) { uid 465 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("Cannot initialize groups for %s: %s (%d)", child->uid, pcmk_strerror(errno), errno); uid 469 daemons/pacemakerd/pcmkd_subdaemons.c if (uid && setuid(uid) < 0) { uid 471 daemons/pacemakerd/pcmkd_subdaemons.c child->uid, uid, strerror(errno)); uid 530 daemons/pacemakerd/pcmkd_subdaemons.c if (child->uid == NULL) { uid 239 daemons/schedulerd/pacemaker-schedulerd.c pe_ipc_accept(qb_ipcs_connection_t * c, uid_t uid, gid_t gid) uid 242 daemons/schedulerd/pacemaker-schedulerd.c if (pcmk__new_client(c, uid, gid) == NULL) { uid 44 include/crm/common/internal.h char *pcmk__uid2username(uid_t uid); uid 77 include/crm/common/internal.h uid_t uid, gid_t gid); uid 201 include/crm/common/ipc_internal.h pcmk__client_t *pcmk__new_client(qb_ipcs_connection_t *c, uid_t uid, gid_t gid); uid 126 include/crm/common/util.h int crm_user_lookup(const char *name, uid_t * uid, gid_t * gid); uid 127 include/crm/common/util.h int pcmk_daemon_user(uid_t *uid, gid_t *gid); uid 218 lib/cib/cib_client.c uid_t uid = geteuid(); uid 219 lib/cib/cib_client.c struct passwd *pwent = getpwuid(uid); uid 228 lib/cib/cib_client.c (user? user : "unprivileged user"), uid); uid 625 lib/cib/cib_file.c uid_t uid = geteuid(); uid 643 lib/cib/cib_file.c if ((uid != 0) && (uid != daemon_pwent->pw_uid)) { uid 666 lib/cib/cib_file.c if (uid == 0) { uid 679 lib/cib/cib_file.c if (uid == 0) { uid 686 lib/common/acl.c pcmk__uid2username(uid_t uid) uid 688 lib/common/acl.c struct passwd *pwent = getpwuid(uid); uid 691 lib/common/acl.c crm_perror(LOG_INFO, "Cannot get user details for user ID %d", uid); uid 238 lib/common/io.c uid_t uid, gid_t gid) uid 247 lib/common/io.c if (chown(series_file, uid, gid) < 0) { uid 1325 lib/common/ipc_client.c found_pid = ucred.pid; found_uid = ucred.uid; found_gid = ucred.gid; uid 1335 lib/common/ipc_client.c found_uid = sockpeercred.uid; found_gid = sockpeercred.gid; uid 129 lib/common/utils.c crm_user_lookup(const char *name, uid_t * uid, gid_t * gid) uid 143 lib/common/utils.c if (uid) { uid 144 lib/common/utils.c *uid = pwentry->pw_uid; uid 169 lib/common/utils.c pcmk_daemon_user(uid_t *uid, gid_t *gid) uid 183 lib/common/utils.c if (uid) { uid 184 lib/common/utils.c *uid = daemon_uid; uid 57 lib/common/watchdog.c uid_t uid = geteuid(); uid 60 lib/common/watchdog.c if(uid != 0 && ppid > 1) { uid 71 lib/common/watchdog.c } else if (uid != 0) { uid 445 lib/services/services.c return crm_user_lookup(user, &(op->opaque->uid), &(op->opaque->gid)); uid 954 lib/services/services_linux.c if (op->opaque->uid && (geteuid() == 0)) { uid 975 lib/services/services_linux.c if (setuid(op->opaque->uid) < 0) { uid 977 lib/services/services_linux.c "to %d: %s", op->id, op->opaque->uid, strerror(errno)); uid 27 lib/services/services_private.h uid_t uid; uid 357 maint/gnulib/lib/acl-internal.c if (ace->uid != ACL_NSUSER && ace->gid != ACL_NSGROUP) uid 36 maint/gnulib/lib/chown.c chown (_GL_UNUSED const char *file, _GL_UNUSED uid_t uid, uid 55 maint/gnulib/lib/chown.c rpl_chown (const char *file, uid_t uid, gid_t gid) uid 62 maint/gnulib/lib/chown.c if (gid != (gid_t) -1 || uid != (uid_t) -1) uid 71 maint/gnulib/lib/chown.c if (gid == (gid_t) -1 || uid == (uid_t) -1) uid 78 maint/gnulib/lib/chown.c if (uid == (uid_t) -1) uid 79 maint/gnulib/lib/chown.c uid = st.st_uid; uid 99 maint/gnulib/lib/chown.c result = fchown (fd, uid, gid); uid 131 maint/gnulib/lib/chown.c result = chown (file, uid, gid); uid 135 maint/gnulib/lib/chown.c && (uid == st.st_uid || uid == (uid_t) -1) uid 94 maint/gnulib/lib/euidaccess.c uid_t uid = getuid (); uid 119 maint/gnulib/lib/euidaccess.c if (uid != euid) uid 120 maint/gnulib/lib/euidaccess.c setreuid (euid, uid); uid 128 maint/gnulib/lib/euidaccess.c if (uid != euid) uid 129 maint/gnulib/lib/euidaccess.c setreuid (uid, euid); uid 144 maint/gnulib/lib/euidaccess.c if (uid == euid && gid == egid) uid 30 maint/gnulib/lib/fchown-stub.c fchown (int fd, uid_t uid, gid_t gid) uid 69 maint/gnulib/lib/idcache.c getuser (uid_t uid) uid 76 maint/gnulib/lib/idcache.c if (tail->id.u == uid) uid 85 maint/gnulib/lib/idcache.c struct passwd *pwent = getpwuid (uid); uid 88 maint/gnulib/lib/idcache.c match->id.u = uid; uid 24 maint/gnulib/lib/idcache.h extern char *getuser (uid_t uid); uid 29 maint/gnulib/lib/idpriv-drop.c int uid = getuid (); uid 63 maint/gnulib/lib/idpriv-drop.c if (setresuid (uid, uid, uid) < 0) uid 66 maint/gnulib/lib/idpriv-drop.c if (setreuid (uid, uid) < 0) uid 69 maint/gnulib/lib/idpriv-drop.c if (seteuid (uid) < 0) uid 93 maint/gnulib/lib/idpriv-drop.c || real != uid uid 94 maint/gnulib/lib/idpriv-drop.c || effective != uid uid 95 maint/gnulib/lib/idpriv-drop.c || saved != uid) uid 100 maint/gnulib/lib/idpriv-drop.c if (geteuid () != uid) uid 104 maint/gnulib/lib/idpriv-drop.c if (getuid () != uid) uid 38 maint/gnulib/lib/idpriv-droptemp.c int uid = getuid (); uid 65 maint/gnulib/lib/idpriv-droptemp.c if (setresuid (-1, uid, saved_uid) < 0) uid 68 maint/gnulib/lib/idpriv-droptemp.c if (setreuid (-1, uid) < 0) uid 83 maint/gnulib/lib/idpriv-droptemp.c || real != uid uid 84 maint/gnulib/lib/idpriv-droptemp.c || effective != uid uid 90 maint/gnulib/lib/idpriv-droptemp.c if (geteuid () != uid) uid 93 maint/gnulib/lib/idpriv-droptemp.c if (getuid () != uid) uid 127 maint/gnulib/lib/idpriv-droptemp.c int uid = getuid (); uid 170 maint/gnulib/lib/idpriv-droptemp.c || real != uid uid 180 maint/gnulib/lib/idpriv-droptemp.c if (getuid () != uid) uid 44 maint/gnulib/lib/lchown.c lchown (const char *file, uid_t uid, gid_t gid) uid 57 maint/gnulib/lib/lchown.c return chown (file, uid, gid); uid 71 maint/gnulib/lib/lchown.c rpl_lchown (const char *file, uid_t uid, gid_t gid) uid 79 maint/gnulib/lib/lchown.c if (gid != (gid_t) -1 || uid != (uid_t) -1) uid 85 maint/gnulib/lib/lchown.c return chown (file, uid, gid); uid 94 maint/gnulib/lib/lchown.c return chown (file, uid, gid); uid 98 maint/gnulib/lib/lchown.c result = lchown (file, uid, gid); uid 102 maint/gnulib/lib/lchown.c && (uid == st.st_uid || uid == (uid_t) -1) uid 290 maint/gnulib/lib/set-permissions.c ctx->entries[0].uid = statbuf.st_uid; uid 293 maint/gnulib/lib/set-permissions.c ctx->entries[1].uid = ACL_NSUSER; uid 296 maint/gnulib/lib/set-permissions.c ctx->entries[2].uid = ACL_NSUSER; uid 352 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) uid 354 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); uid 357 maint/gnulib/lib/unistd.in.h _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) uid 360 maint/gnulib/lib/unistd.in.h _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); uid 103 maint/gnulib/lib/userspec.c uid_t *uid, gid_t *gid, uid 116 maint/gnulib/lib/userspec.c uid_t unum = *uid; uid 220 maint/gnulib/lib/userspec.c *uid = unum; uid 259 maint/gnulib/lib/userspec.c parse_user_spec (char const *spec, uid_t *uid, gid_t *gid, uid 264 maint/gnulib/lib/userspec.c parse_with_separator (spec, colon, uid, gid, username, groupname); uid 276 maint/gnulib/lib/userspec.c && ! parse_with_separator (spec, dot, uid, gid, username, groupname)) uid 296 maint/gnulib/lib/userspec.c uid_t uid; uid 301 maint/gnulib/lib/userspec.c e = parse_user_spec (tmp, &uid, &gid, &username, &groupname); uid 305 maint/gnulib/lib/userspec.c (unsigned long int) uid, uid 25 maint/gnulib/lib/userspec.h parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid, uid 84 maint/gnulib/tests/test-idpriv-drop.c int uid = getuid (); uid 115 maint/gnulib/tests/test-idpriv-drop.c || real != uid uid 116 maint/gnulib/tests/test-idpriv-drop.c || effective != uid uid 117 maint/gnulib/tests/test-idpriv-drop.c || saved != uid) uid 122 maint/gnulib/tests/test-idpriv-drop.c if (geteuid () != uid) uid 126 maint/gnulib/tests/test-idpriv-drop.c if (getuid () != uid) uid 84 maint/gnulib/tests/test-idpriv-droptemp.c int uid = getuid (); uid 118 maint/gnulib/tests/test-idpriv-droptemp.c if (geteuid () != uid) uid 122 maint/gnulib/tests/test-idpriv-droptemp.c if (getuid () != uid) uid 145 maint/gnulib/tests/test-idpriv-droptemp.c if (getuid () != uid) uid 435 maint/gnulib/tests/test-sameacls.c if (entries1[i].uid != entries2[i].uid) uid 438 maint/gnulib/tests/test-sameacls.c file1, file2, i, (int)entries1[i].uid, (int)entries2[i].uid); uid 39 maint/gnulib/tests/test-userspec.c uid_t uid; uid 108 maint/gnulib/tests/test-userspec.c uid_t uid; uid 109 maint/gnulib/tests/test-userspec.c for (uid = 1200; 0 < uid; uid--) uid 112 maint/gnulib/tests/test-userspec.c struct passwd *pw = getpwuid (uid); uid 131 maint/gnulib/tests/test-userspec.c T[j].uid = uid; uid 142 maint/gnulib/tests/test-userspec.c uid_t uid = (uid_t) -1; uid 146 maint/gnulib/tests/test-userspec.c char const *diag = parse_user_spec (T[i].in, &uid, &gid, uid 161 maint/gnulib/tests/test-userspec.c if (uid != T[i].uid || gid != T[i].gid) uid 166 maint/gnulib/tests/test-userspec.c (unsigned long int) T[i].uid, uid 168 maint/gnulib/tests/test-userspec.c (unsigned long int) uid, uid 185 maint/gnulib/tests/test-userspec.c uid_t uid = (uid_t) -1; uid 186 maint/gnulib/tests/test-userspec.c char const *diag = parse_user_spec ("", &uid, NULL, NULL, NULL);