user 96 daemons/attrd/attrd_commands.c free(a->user); user 107 daemons/attrd/attrd_commands.c xmlNode *parent, const char *name, const char *set, const char *uuid, unsigned int timeout_ms, const char *user, user 115 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_USER, user); user 159 daemons/attrd/attrd_commands.c a->user = crm_element_value_copy(xml, PCMK__XA_ATTR_USER); user 160 daemons/attrd/attrd_commands.c crm_trace("Performing all %s operations as user '%s'", a->id, a->user); user 651 daemons/attrd/attrd_commands.c build_attribute_xml(sync, a->id, a->set, a->uuid, a->timeout_ms, a->user, a->is_private, user 755 daemons/attrd/attrd_commands.c build_attribute_xml(sync, a->id, a->set, a->uuid, a->timeout_ms, a->user, a->is_private, user 873 daemons/attrd/attrd_commands.c build_attribute_xml(sync, attr, a->set, a->uuid, a->timeout_ms, a->user, user 1297 daemons/attrd/attrd_commands.c flags, a->user); user 244 daemons/attrd/pacemaker-attrd.c CRM_ASSERT(client->user != NULL); user 245 daemons/attrd/pacemaker-attrd.c pcmk__update_acl_user(xml, PCMK__XA_ATTR_USER, client->user); user 97 daemons/attrd/pacemaker-attrd.h char *user; user 262 daemons/based/based_callbacks.c CRM_LOG_ASSERT(cib_client->user != NULL); user 263 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 447 daemons/based/based_remote.c crm_xml_add(command, F_CIB_USER, client->user); user 514 daemons/based/based_remote.c const char *user = NULL; user 529 daemons/based/based_remote.c user = crm_element_value(command, "user"); user 530 daemons/based/based_remote.c if (user) { user 531 daemons/based/based_remote.c client->user = strdup(user); user 625 daemons/based/based_remote.c authenticate_user(const char *user, const char *passwd) user 648 daemons/based/based_remote.c rc = pam_start(pam_name, user, &p_conv, &pam_h); user 656 daemons/based/based_remote.c crm_err("Authentication failed for %s: %s (%d)", user, pam_strerror(pam_h, rc), rc); user 674 daemons/based/based_remote.c } else if (!pcmk__str_eq(p_user, user, pcmk__str_casei)) { user 675 daemons/based/based_remote.c crm_err("User mismatch: %s vs. %s.", (const char *)p_user, (const char *)user); user 388 daemons/controld/controld_control.c CRM_ASSERT(client->user != NULL); user 389 daemons/controld/controld_control.c pcmk__update_acl_user(msg, F_CRM_USER, client->user); user 1316 daemons/controld/controld_execd.c const char *user, user 1323 daemons/controld/controld_execd.c id, sys, (user? " as " : ""), (user? user : "")); user 1345 daemons/controld/controld_execd.c CRM_XS " rc=%d", id, sys, (user? " as " : ""), user 1346 daemons/controld/controld_execd.c (user? user : ""), pcmk_strerror(rc), rc); user 1349 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, request, id, gIter, rc, user); user 263 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 28 include/crm/common/acl.h bool xml_acl_filtered_copy(const char *user, xmlNode* acl_source, xmlNode *xml, user 31 include/crm/common/acl.h bool pcmk_acl_required(const char *user); user 37 include/crm/common/internal.h pcmk__is_privileged(const char *user) user 39 include/crm/common/internal.h return user && (!strcmp(user, CRM_DAEMON_USER) || !strcmp(user, "root")); user 141 include/crm/common/ipc_internal.h char *user; user 269 include/crm/common/xml.h void xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls); user 273 include/crm/services.h int services_action_user(svc_action_t *op, const char *user); user 220 lib/cib/cib_client.c const char *user = NULL; user 223 lib/cib/cib_client.c user = pwent->pw_name; user 225 lib/cib/cib_client.c user = getenv("USER"); user 228 lib/cib/cib_client.c (user? user : "unprivileged user"), uid); user 231 lib/cib/cib_client.c if (pcmk__strcase_any_of(user, "root", CRM_DAEMON_USER, NULL)) { user 310 lib/cib/cib_client.c const char *user = getenv("CIB_user"); user 319 lib/cib/cib_client.c if (user == NULL) { user 320 lib/cib/cib_client.c user = CRM_DAEMON_USER; user 321 lib/cib/cib_client.c crm_info("Defaulting to user: %s", user); user 329 lib/cib/cib_client.c return cib_remote_new(server, user, pass, port, encrypted); user 59 lib/cib/cib_remote.c char *user; user 107 lib/cib/cib_remote.c cib_remote_new(const char *server, const char *user, const char *passwd, int port, user 122 lib/cib/cib_remote.c if (user) { user 123 lib/cib/cib_remote.c private->user = strdup(user); user 266 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); user 414 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { user 478 lib/cib/cib_remote.c free(private->user); user 186 lib/cib/cib_utils.c cib_acl_enabled(xmlNode *xml, const char *user) user 191 lib/cib/cib_utils.c if(pcmk_acl_required(user)) { user 220 lib/cib/cib_utils.c const char *user = crm_element_value(req, F_CIB_USER); user 246 lib/cib/cib_utils.c if(cib_acl_enabled(cib_ro, user)) { user 247 lib/cib/cib_utils.c if(xml_acl_filtered_copy(user, current_cib, current_cib, &cib_filtered)) { user 292 lib/cib/cib_utils.c xml_track_changes(scratch, user, NULL, cib_acl_enabled(scratch, user)); user 297 lib/cib/cib_utils.c xml_track_changes(scratch, user, NULL, cib_acl_enabled(scratch, user)); user 302 lib/cib/cib_utils.c xml_track_changes(scratch, user, current_cib, cib_acl_enabled(current_cib, user)); user 481 lib/cib/cib_utils.c if(rc != pcmk_ok && cib_acl_enabled(current_cib, user)) { user 482 lib/cib/cib_utils.c if(xml_acl_filtered_copy(user, current_cib, scratch, result_cib)) { user 251 lib/common/acl.c p->user); user 302 lib/common/acl.c pcmk__unpack_acl(xmlNode *source, xmlNode *target, const char *user) user 313 lib/common/acl.c if (!pcmk_acl_required(user)) { user 315 lib/common/acl.c user); user 321 lib/common/acl.c free(p->user); user 322 lib/common/acl.c p->user = strdup(user); user 335 lib/common/acl.c if (id && strcmp(id, user) == 0) { user 419 lib/common/acl.c xml_acl_filtered_copy(const char *user, xmlNode *acl_source, xmlNode *xml, user 427 lib/common/acl.c if ((xml == NULL) || !pcmk_acl_required(user)) { user 429 lib/common/acl.c user); user 433 lib/common/acl.c crm_trace("Filtering XML copy using user '%s' ACLs", user); user 439 lib/common/acl.c pcmk__unpack_acl(acl_source, target, user); user 461 lib/common/acl.c user); user 467 lib/common/acl.c user, acl->xpath, max, user 474 lib/common/acl.c crm_trace("ACLs deny user '%s' access to entire XML document", user); user 484 lib/common/acl.c user); user 638 lib/common/acl.c docp->user, acl_to_text(mode), buffer); user 663 lib/common/acl.c (parent != xml) ? "Parent " : "", docp->user, user 672 lib/common/acl.c docp->user, acl_to_text(mode), buffer); user 689 lib/common/acl.c pcmk_acl_required(const char *user) user 692 lib/common/acl.c if (pcmk__str_empty(user)) { user 696 lib/common/acl.c } else if (!strcmp(user, CRM_DAEMON_USER) || !strcmp(user, "root")) { user 697 lib/common/acl.c crm_trace("ACLs not required for privileged user %s", user); user 700 lib/common/acl.c crm_trace("ACLs required for %s", user); user 745 lib/common/acl.c const char *user = NULL; user 770 lib/common/acl.c user = effective_user; user 776 lib/common/acl.c user = effective_user; user 780 lib/common/acl.c user = requested_user; user 786 lib/common/acl.c user = peer_user; user 790 lib/common/acl.c user = peer_user; user 794 lib/common/acl.c user = requested_user; user 798 lib/common/acl.c if (user != crm_element_value(request, XML_ACL_TAG_USER)) { user 799 lib/common/acl.c crm_xml_add(request, XML_ACL_TAG_USER, user); user 802 lib/common/acl.c if (field != NULL && user != crm_element_value(request, field)) { user 803 lib/common/acl.c crm_xml_add(request, field, user); user 64 lib/common/crmcommon_private.h char *user; user 126 lib/common/crmcommon_private.h void pcmk__unpack_acl(xmlNode *source, xmlNode *target, const char *user); user 163 lib/common/ipc_server.c client->user = pcmk__uid2username(uid_client); user 164 lib/common/ipc_server.c if (client->user == NULL) { user 165 lib/common/ipc_server.c client->user = strdup("#unprivileged"); user 166 lib/common/ipc_server.c CRM_CHECK(client->user != NULL, free(client); return NULL); user 182 lib/common/ipc_server.c free(client->user); user 325 lib/common/ipc_server.c free(c->user); user 834 lib/common/logging.c const char *user = getenv("USER"); user 836 lib/common/logging.c if (user != NULL && !pcmk__strcase_any_of(user, "root", CRM_DAEMON_USER, NULL)) { user 837 lib/common/logging.c crm_trace("Not switching to corefile directory for %s", user); user 843 lib/common/logging.c int user = getuid(); user 845 lib/common/logging.c struct passwd *pwent = getpwuid(user); user 848 lib/common/logging.c crm_perror(LOG_ERR, "Cannot get name for uid: %d", user); user 206 lib/common/xml.c free(p->user); user 207 lib/common/xml.c p->user = NULL; user 276 lib/common/xml.c xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls) user 286 lib/common/xml.c pcmk__unpack_acl(acl_source, xml, user); user 69 lib/pengine/pe_output.c last_changed_string(const char *last_written, const char *user, user 71 lib/pengine/pe_output.c if (last_written != NULL || user != NULL || client != NULL || origin != NULL) { user 74 lib/pengine/pe_output.c user ? " by " : "", user 75 lib/pengine/pe_output.c user ? user : "", user 244 lib/pengine/pe_output.c const char *user = crm_element_value(data_set->input, XML_ATTR_UPDATE_USER); user 249 lib/pengine/pe_output.c out->message(out, "cluster-times", last_written, user, client, origin); user 310 lib/pengine/pe_output.c const char *user = crm_element_value(data_set->input, XML_ATTR_UPDATE_USER); user 315 lib/pengine/pe_output.c out->message(out, "cluster-times", last_written, user, client, origin); user 896 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 900 lib/pengine/pe_output.c char *buf = last_changed_string(last_written, user, client, origin); user 920 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 927 lib/pengine/pe_output.c xmlSetProp(changed_node, (pcmkXmlStr) "user", (pcmkXmlStr) (user ? user : "")); user 938 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 942 lib/pengine/pe_output.c char *buf = last_changed_string(last_written, user, client, origin); user 379 lib/services/services.c services_action_user(svc_action_t *op, const char *user) user 381 lib/services/services.c CRM_CHECK((op != NULL) && (user != NULL), return -EINVAL); user 382 lib/services/services.c return crm_user_lookup(user, &(op->opaque->uid), &(op->opaque->gid));