user 42 daemons/attrd/attrd_attributes.c a->user = crm_element_value_copy(xml, PCMK__XA_ATTR_USER); user 43 daemons/attrd/attrd_attributes.c crm_trace("Performing all %s operations as user '%s'", a->id, a->user); user 124 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_USER, a->user); user 327 daemons/attrd/attrd_cib.c a->user); user 588 daemons/attrd/attrd_ipc.c CRM_ASSERT(client->user != NULL); user 589 daemons/attrd/attrd_ipc.c pcmk__update_acl_user(xml, PCMK__XA_ATTR_USER, client->user); user 279 daemons/attrd/attrd_utils.c free(a->user); user 135 daemons/attrd/pacemaker-attrd.h char *user; user 261 daemons/based/based_callbacks.c CRM_LOG_ASSERT(cib_client->user != NULL); user 262 daemons/based/based_callbacks.c pcmk__update_acl_user(op_request, F_CIB_USER, cib_client->user); user 75 daemons/based/based_remote.c int authenticate_user(const char *user, const char *passwd); user 216 daemons/based/based_remote.c const char *user = NULL; user 237 daemons/based/based_remote.c user = crm_element_value(login, "user"); user 240 daemons/based/based_remote.c if (!user || !pass) { user 248 daemons/based/based_remote.c if (check_group_membership(user, CRM_DAEMON_GROUP) == FALSE) { user 252 daemons/based/based_remote.c } else if (authenticate_user(user, pass) == FALSE) { user 437 daemons/based/based_remote.c crm_xml_add(command, F_CIB_USER, client->user); user 505 daemons/based/based_remote.c const char *user = NULL; user 519 daemons/based/based_remote.c user = crm_element_value(command, "user"); user 520 daemons/based/based_remote.c if (user) { user 521 daemons/based/based_remote.c client->user = strdup(user); user 615 daemons/based/based_remote.c authenticate_user(const char *user, const char *passwd) user 638 daemons/based/based_remote.c rc = pam_start(pam_name, user, &p_conv, &pam_h); user 646 daemons/based/based_remote.c crm_err("Authentication failed for %s: %s (%d)", user, pam_strerror(pam_h, rc), rc); user 664 daemons/based/based_remote.c } else if (!pcmk__str_eq(p_user, user, pcmk__str_casei)) { user 665 daemons/based/based_remote.c crm_err("User mismatch: %s vs. %s.", (const char *)p_user, (const char *)user); user 397 daemons/controld/controld_control.c CRM_ASSERT(client->user != NULL); user 398 daemons/controld/controld_control.c pcmk__update_acl_user(msg, F_CRM_USER, client->user); user 965 daemons/controld/controld_execd.c GHashTableIter *iter, const char *sys, const char *user, user 971 daemons/controld/controld_execd.c id, sys, (user? " as " : ""), (user? user : "")); user 993 daemons/controld/controld_execd.c CRM_XS " rc=%d", id, sys, (user? " as " : ""), user 994 daemons/controld/controld_execd.c (user? user : ""), pcmk_strerror(rc), rc); user 997 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, request, id, iter, rc, user, from_cib); user 270 daemons/execd/remoted_proxy.c crm_xml_add(msg, F_LRMD_IPC_USER, client->user); user 39 include/crm/cib.h cib_t *cib_remote_new(const char *server, const char *user, const char *passwd, int port, user 29 include/crm/common/acl.h bool xml_acl_filtered_copy(const char *user, xmlNode* acl_source, xmlNode *xml, user 32 include/crm/common/acl.h bool pcmk_acl_required(const char *user); user 22 include/crm/common/acl_internal.h pcmk__is_privileged(const char *user) user 24 include/crm/common/acl_internal.h return user && (!strcmp(user, CRM_DAEMON_USER) || !strcmp(user, "root")); user 27 include/crm/common/acl_internal.h void pcmk__enable_acl(xmlNode *acl_source, xmlNode *target, const char *user); user 172 include/crm/common/ipc_internal.h char *user; user 280 include/crm/common/xml.h void xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls); user 293 include/crm/services.h int services_action_user(svc_action_t *op, const char *user); user 427 lib/cib/cib_client.c const char *user = NULL; user 430 lib/cib/cib_client.c user = pwent->pw_name; user 432 lib/cib/cib_client.c user = getenv("USER"); user 435 lib/cib/cib_client.c (user? user : "unprivileged user"), uid); user 438 lib/cib/cib_client.c if (pcmk__strcase_any_of(user, "root", CRM_DAEMON_USER, NULL)) { user 553 lib/cib/cib_client.c const char *user = getenv("CIB_user"); user 569 lib/cib/cib_client.c if (user == NULL) { user 570 lib/cib/cib_client.c user = CRM_DAEMON_USER; user 571 lib/cib/cib_client.c crm_info("Defaulting to user: %s", user); user 579 lib/cib/cib_client.c return cib_remote_new(server, user, pass, port, encrypted); user 47 lib/cib/cib_remote.c char *user; user 383 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); user 449 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { user 511 lib/cib/cib_remote.c free(private->user); user 585 lib/cib/cib_remote.c cib_remote_new(const char *server, const char *user, const char *passwd, int port, user 606 lib/cib/cib_remote.c pcmk__str_update(&private->user, user); user 126 lib/cib/cib_utils.c cib_acl_enabled(xmlNode *xml, const char *user) user 130 lib/cib/cib_utils.c if(pcmk_acl_required(user)) { user 157 lib/cib/cib_utils.c const char *user = crm_element_value(req, F_CIB_USER); user 186 lib/cib/cib_utils.c if(cib_acl_enabled(cib_ro, user)) { user 187 lib/cib/cib_utils.c if(xml_acl_filtered_copy(user, current_cib, current_cib, &cib_filtered)) { user 232 lib/cib/cib_utils.c xml_track_changes(scratch, user, NULL, cib_acl_enabled(scratch, user)); user 237 lib/cib/cib_utils.c xml_track_changes(scratch, user, NULL, cib_acl_enabled(scratch, user)); user 242 lib/cib/cib_utils.c xml_track_changes(scratch, user, current_cib, cib_acl_enabled(current_cib, user)); user 447 lib/cib/cib_utils.c if(rc != pcmk_ok && cib_acl_enabled(current_cib, user)) { user 448 lib/cib/cib_utils.c if(xml_acl_filtered_copy(user, current_cib, scratch, result_cib)) { user 233 lib/common/acl.c docpriv->user); user 282 lib/common/acl.c pcmk__unpack_acl(xmlNode *source, xmlNode *target, const char *user) user 292 lib/common/acl.c if (!pcmk_acl_required(user)) { user 294 lib/common/acl.c user); user 300 lib/common/acl.c pcmk__str_update(&docpriv->user, user); user 317 lib/common/acl.c if (id && strcmp(id, user) == 0) { user 328 lib/common/acl.c if (id && pcmk__is_user_in_group(user,id)) { user 347 lib/common/acl.c pcmk__enable_acl(xmlNode *acl_source, xmlNode *target, const char *user) user 349 lib/common/acl.c pcmk__unpack_acl(acl_source, target, user); user 438 lib/common/acl.c xml_acl_filtered_copy(const char *user, xmlNode *acl_source, xmlNode *xml, user 446 lib/common/acl.c if ((xml == NULL) || !pcmk_acl_required(user)) { user 448 lib/common/acl.c user); user 452 lib/common/acl.c crm_trace("Filtering XML copy using user '%s' ACLs", user); user 458 lib/common/acl.c pcmk__enable_acl(acl_source, target, user); user 478 lib/common/acl.c user); user 484 lib/common/acl.c user, acl->xpath, max, user 491 lib/common/acl.c crm_trace("ACLs deny user '%s' access to entire XML document", user); user 501 lib/common/acl.c user); user 673 lib/common/acl.c docpriv->user, acl_to_text(mode), user 710 lib/common/acl.c docpriv->user, acl_to_text(mode), user 729 lib/common/acl.c docpriv->user, acl_to_text(mode), user 746 lib/common/acl.c pcmk_acl_required(const char *user) user 748 lib/common/acl.c if (pcmk__str_empty(user)) { user 752 lib/common/acl.c } else if (!strcmp(user, CRM_DAEMON_USER) || !strcmp(user, "root")) { user 753 lib/common/acl.c crm_trace("ACLs not required for privileged user %s", user); user 756 lib/common/acl.c crm_trace("ACLs required for %s", user); user 798 lib/common/acl.c const char *user = NULL; user 823 lib/common/acl.c user = effective_user; user 829 lib/common/acl.c user = effective_user; user 833 lib/common/acl.c user = requested_user; user 839 lib/common/acl.c user = peer_user; user 843 lib/common/acl.c user = peer_user; user 847 lib/common/acl.c user = requested_user; user 851 lib/common/acl.c if (user != crm_element_value(request, XML_ACL_TAG_USER)) { user 852 lib/common/acl.c crm_xml_add(request, XML_ACL_TAG_USER, user); user 855 lib/common/acl.c if (field != NULL && user != crm_element_value(request, field)) { user 856 lib/common/acl.c crm_xml_add(request, field, user); user 48 lib/common/crmcommon_private.h char *user; user 98 lib/common/crmcommon_private.h void pcmk__unpack_acl(xmlNode *source, xmlNode *target, const char *user); user 101 lib/common/crmcommon_private.h bool pcmk__is_user_in_group(const char *user, const char *group); user 174 lib/common/ipc_server.c client->user = pcmk__uid2username(uid_client); user 175 lib/common/ipc_server.c if (client->user == NULL) { user 176 lib/common/ipc_server.c client->user = strdup("#unprivileged"); user 177 lib/common/ipc_server.c CRM_CHECK(client->user != NULL, free(client); return NULL); user 329 lib/common/ipc_server.c free(c->user); user 963 lib/common/logging.c const char *user = getenv("USER"); user 965 lib/common/logging.c if (user != NULL && !pcmk__strcase_any_of(user, "root", CRM_DAEMON_USER, NULL)) { user 966 lib/common/logging.c crm_trace("Not switching to corefile directory for %s", user); user 972 lib/common/logging.c int user = getuid(); user 973 lib/common/logging.c struct passwd *pwent = getpwuid(user); user 976 lib/common/logging.c crm_perror(LOG_ERR, "Cannot get name for uid: %d", user); user 54 lib/common/utils.c pcmk__is_user_in_group(const char *user, const char *group) user 59 lib/common/utils.c if (user == NULL || group == NULL) { user 75 lib/common/utils.c if (!strcmp(user, *gr_mem++)) { user 164 lib/common/xml.c free(docpriv->user); user 165 lib/common/xml.c docpriv->user = NULL; user 270 lib/common/xml.c xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls) user 280 lib/common/xml.c pcmk__unpack_acl(acl_source, xml, user); user 199 lib/pengine/pe_output.c last_changed_string(const char *last_written, const char *user, user 201 lib/pengine/pe_output.c if (last_written != NULL || user != NULL || client != NULL || origin != NULL) { user 204 lib/pengine/pe_output.c user ? " by " : "", user 205 lib/pengine/pe_output.c user ? user : "", user 407 lib/pengine/pe_output.c const char *user = crm_element_value(data_set->input, XML_ATTR_UPDATE_USER); user 413 lib/pengine/pe_output.c data_set->localhost, last_written, user, client, origin); user 476 lib/pengine/pe_output.c const char *user = crm_element_value(data_set->input, XML_ATTR_UPDATE_USER); user 482 lib/pengine/pe_output.c data_set->localhost, last_written, user, client, origin); user 1170 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 1188 lib/pengine/pe_output.c time_s = last_changed_string(last_written, user, client, origin); user 1203 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 1216 lib/pengine/pe_output.c "user", user ? user : "", user 1231 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 1242 lib/pengine/pe_output.c time_s = last_changed_string(last_written, user, client, origin); user 445 lib/services/services.c services_action_user(svc_action_t *op, const char *user) user 447 lib/services/services.c CRM_CHECK((op != NULL) && (user != NULL), return -EINVAL); user 448 lib/services/services.c return crm_user_lookup(user, &(op->opaque->uid), &(op->opaque->gid)); user 105 maint/gnulib/lib/idcache.c getuidbyname (const char *user) user 112 maint/gnulib/lib/idcache.c if (*tail->name == *user && !strcmp (tail->name, user)) user 117 maint/gnulib/lib/idcache.c if (*tail->name == *user && !strcmp (tail->name, user)) user 120 maint/gnulib/lib/idcache.c pwent = getpwnam (user); user 124 maint/gnulib/lib/idcache.c if (!pwent && strspn (user, digits) < strlen (user)) user 126 maint/gnulib/lib/idcache.c setenv ("USER", user, 1); user 127 maint/gnulib/lib/idcache.c pwent = getpwnam (user); /* now it will succeed */ user 131 maint/gnulib/lib/idcache.c tail = xmalloc (FLEXSIZEOF (struct userid, name, strlen (user) + 1)); user 132 maint/gnulib/lib/idcache.c strcpy (tail->name, user); user 26 maint/gnulib/lib/idcache.h extern uid_t *getuidbyname (const char *user); user 98 maint/gnulib/lib/timevar.c now->user = 0; user 110 maint/gnulib/lib/timevar.c now->user = user 138 maint/gnulib/lib/timevar.c timer->user += stop->user - start->user; user 332 maint/gnulib/lib/timevar.c const int usr = total->user ? tv->elapsed.user * 100 / total->user : 0; user 341 maint/gnulib/lib/timevar.c fprintf (fp, "%8.3f (%2d%%)", tv->elapsed.user * 1e-9, usr); user 348 maint/gnulib/lib/timevar.c fprintf (fp, "%8.3f ", total->user * 1e-9); user 63 maint/gnulib/lib/timevar.h xtime_t user; user 50 maint/gnulib/tests/test-fchownat.c do_chown (char const *name, uid_t user, gid_t group) user 53 maint/gnulib/tests/test-fchownat.c return chownat (dfd, name, user, group); user 55 maint/gnulib/tests/test-fchownat.c return fchownat (dfd, name, user, group, 0); user 61 maint/gnulib/tests/test-fchownat.c do_lchown (char const *name, uid_t user, gid_t group) user 64 maint/gnulib/tests/test-fchownat.c return lchownat (dfd, name, user, group); user 66 maint/gnulib/tests/test-fchownat.c return fchownat (dfd, name, user, group, AT_SYMLINK_NOFOLLOW);