user 55 daemons/attrd/attrd_attributes.c a->user = crm_element_value_copy(xml, PCMK__XA_ATTR_USER); user 76 daemons/attrd/attrd_attributes.c pcmk__s(a->user, "default")); user 144 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_USER, a->user); user 517 daemons/attrd/attrd_cib.c the_cib->cmds->set_user(the_cib, a->user); user 584 daemons/attrd/attrd_ipc.c CRM_ASSERT(client->user != NULL); user 585 daemons/attrd/attrd_ipc.c pcmk__update_acl_user(xml, PCMK__XA_ATTR_USER, client->user); user 242 daemons/attrd/attrd_utils.c free(a->user); user 133 daemons/attrd/pacemaker-attrd.h char *user; // ACL user to use for CIB writes user 375 daemons/based/based_callbacks.c CRM_LOG_ASSERT(cib_client->user != NULL); user 376 daemons/based/based_callbacks.c pcmk__update_acl_user(op_request, PCMK__XA_CIB_USER, cib_client->user); user 76 daemons/based/based_remote.c int authenticate_user(const char *user, const char *passwd); user 217 daemons/based/based_remote.c const char *user = NULL; user 238 daemons/based/based_remote.c user = crm_element_value(login, PCMK_XA_USER); user 241 daemons/based/based_remote.c if (!user || !pass) { user 249 daemons/based/based_remote.c if (check_group_membership(user, CRM_DAEMON_GROUP) == FALSE) { user 253 daemons/based/based_remote.c } else if (authenticate_user(user, pass) == FALSE) { user 430 daemons/based/based_remote.c crm_xml_add(command, PCMK__XA_CIB_USER, client->user); user 498 daemons/based/based_remote.c const char *user = NULL; user 512 daemons/based/based_remote.c user = crm_element_value(command, PCMK_XA_USER); user 513 daemons/based/based_remote.c if (user) { user 514 daemons/based/based_remote.c client->user = pcmk__str_copy(user); user 607 daemons/based/based_remote.c authenticate_user(const char *user, const char *passwd) user 630 daemons/based/based_remote.c rc = pam_start(pam_name, user, &p_conv, &pam_h); user 638 daemons/based/based_remote.c crm_err("Authentication failed for %s: %s (%d)", user, pam_strerror(pam_h, rc), rc); user 656 daemons/based/based_remote.c } else if (!pcmk__str_eq(p_user, user, pcmk__str_casei)) { user 657 daemons/based/based_remote.c crm_err("User mismatch: %s vs. %s.", (const char *)p_user, (const char *)user); user 391 daemons/controld/controld_control.c CRM_ASSERT(client->user != NULL); user 392 daemons/controld/controld_control.c pcmk__update_acl_user(msg, PCMK__XA_CRM_USER, client->user); user 966 daemons/controld/controld_execd.c GHashTableIter *iter, const char *sys, const char *user, user 972 daemons/controld/controld_execd.c id, sys, (user? " as " : ""), (user? user : "")); user 994 daemons/controld/controld_execd.c CRM_XS " rc=%d", id, sys, (user? " as " : ""), user 995 daemons/controld/controld_execd.c (user? user : ""), pcmk_strerror(rc), rc); user 998 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, request, id, iter, rc, user, from_cib); user 275 daemons/execd/remoted_proxy.c crm_xml_add(msg, PCMK__XA_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 374 include/crm/cib/cib_types.h void (*set_user)(cib_t *cib, const char *user); user 403 include/crm/cib/cib_types.h char *user; 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 25 include/crm/common/acl_internal.h pcmk__is_privileged(const char *user) user 27 include/crm/common/acl_internal.h return user && (!strcmp(user, CRM_DAEMON_USER) || !strcmp(user, "root")); user 30 include/crm/common/acl_internal.h void pcmk__enable_acl(xmlNode *acl_source, xmlNode *target, const char *user); user 177 include/crm/common/ipc_internal.h char *user; user 91 include/crm/common/xml.h void xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls); user 298 include/crm/services.h int services_action_user(svc_action_t *op, const char *user); user 255 lib/cib/cib_client.c call_options, cib->user); user 263 lib/cib/cib_client.c call_options, cib->user); user 278 lib/cib/cib_client.c output_data, call_options, cib->user); user 286 lib/cib/cib_client.c NULL, cib_scope_local|cib_sync_call, cib->user); user 294 lib/cib/cib_client.c NULL, call_options, cib->user); user 309 lib/cib/cib_client.c NULL, call_options|cib_scope_local, cib->user); user 317 lib/cib/cib_client.c call_options, cib->user); user 325 lib/cib/cib_client.c NULL, call_options, cib->user); user 339 lib/cib/cib_client.c NULL, NULL, call_options, cib->user); user 347 lib/cib/cib_client.c NULL, call_options, cib->user); user 355 lib/cib/cib_client.c NULL, call_options, cib->user); user 363 lib/cib/cib_client.c NULL, call_options, cib->user); user 371 lib/cib/cib_client.c NULL, call_options, cib->user); user 379 lib/cib/cib_client.c data, NULL, call_options, cib->user); user 387 lib/cib/cib_client.c output_data, call_options, cib->user); user 435 lib/cib/cib_client.c cib->transaction, NULL, call_options, cib->user); user 466 lib/cib/cib_client.c cib_client_set_user(cib_t *cib, const char *user) user 468 lib/cib/cib_client.c pcmk__str_update(&(cib->user), user); user 508 lib/cib/cib_client.c const char *user = NULL; user 511 lib/cib/cib_client.c user = pwent->pw_name; user 513 lib/cib/cib_client.c user = getenv("USER"); user 516 lib/cib/cib_client.c (user? user : "unprivileged user"), uid); user 519 lib/cib/cib_client.c if (pcmk__strcase_any_of(user, "root", CRM_DAEMON_USER, NULL)) { user 634 lib/cib/cib_client.c const char *user = getenv("CIB_user"); user 650 lib/cib/cib_client.c if (user == NULL) { user 651 lib/cib/cib_client.c user = CRM_DAEMON_USER; user 652 lib/cib/cib_client.c crm_info("Defaulting to user: %s", user); user 660 lib/cib/cib_client.c return cib_remote_new(server, user, pass, port, encrypted); user 590 lib/cib/cib_file.c free(cib->user); user 394 lib/cib/cib_native.c free(cib->user); user 48 lib/cib/cib_remote.c char *user; user 392 lib/cib/cib_remote.c crm_xml_add(login, PCMK_XA_USER, private->user); user 460 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { user 526 lib/cib/cib_remote.c free(private->user); user 529 lib/cib/cib_remote.c free(cib->user); user 601 lib/cib/cib_remote.c cib_remote_new(const char *server, const char *user, const char *passwd, int port, user 622 lib/cib/cib_remote.c private->user = pcmk__str_copy(user); user 265 lib/cib/cib_utils.c cib_acl_enabled(xmlNode *xml, const char *user) user 269 lib/cib/cib_utils.c if(pcmk_acl_required(user)) { user 345 lib/cib/cib_utils.c const char *user = crm_element_value(req, PCMK__XA_CIB_USER); user 372 lib/cib/cib_utils.c if (cib_acl_enabled(cib_ro, user) user 373 lib/cib/cib_utils.c && xml_acl_filtered_copy(user, *current_cib, *current_cib, user 420 lib/cib/cib_utils.c xml_track_changes(scratch, user, NULL, cib_acl_enabled(scratch, user)); user 432 lib/cib/cib_utils.c xml_track_changes(scratch, user, NULL, cib_acl_enabled(scratch, user)); user 438 lib/cib/cib_utils.c xml_track_changes(scratch, user, *current_cib, user 439 lib/cib/cib_utils.c cib_acl_enabled(*current_cib, user)); user 608 lib/cib/cib_utils.c crm_xml_add(scratch, PCMK_XA_UPDATE_CLIENT, user); user 613 lib/cib/cib_utils.c if (user != NULL) { user 614 lib/cib/cib_utils.c crm_xml_add(scratch, PCMK_XA_UPDATE_USER, user); user 639 lib/cib/cib_utils.c if ((rc != pcmk_ok) && cib_acl_enabled(patchset_cib, user) user 640 lib/cib/cib_utils.c && xml_acl_filtered_copy(user, patchset_cib, scratch, result_cib)) { user 239 lib/common/acl.c docpriv->user); user 288 lib/common/acl.c pcmk__unpack_acl(xmlNode *source, xmlNode *target, const char *user) user 298 lib/common/acl.c if (!pcmk_acl_required(user)) { user 300 lib/common/acl.c user); user 305 lib/common/acl.c pcmk__str_update(&docpriv->user, user); user 324 lib/common/acl.c if (id && strcmp(id, user) == 0) { user 335 lib/common/acl.c if (id && pcmk__is_user_in_group(user,id)) { user 354 lib/common/acl.c pcmk__enable_acl(xmlNode *acl_source, xmlNode *target, const char *user) user 356 lib/common/acl.c pcmk__unpack_acl(acl_source, target, user); user 445 lib/common/acl.c xml_acl_filtered_copy(const char *user, xmlNode *acl_source, xmlNode *xml, user 453 lib/common/acl.c if ((xml == NULL) || !pcmk_acl_required(user)) { user 455 lib/common/acl.c user); user 459 lib/common/acl.c crm_trace("Filtering XML copy using user '%s' ACLs", user); user 465 lib/common/acl.c pcmk__enable_acl(acl_source, target, user); user 485 lib/common/acl.c user); user 491 lib/common/acl.c user, acl->xpath, max, user 498 lib/common/acl.c crm_trace("ACLs deny user '%s' access to entire XML document", user); user 508 lib/common/acl.c user); user 681 lib/common/acl.c docpriv->user, acl_to_text(mode), user 718 lib/common/acl.c docpriv->user, acl_to_text(mode), user 737 lib/common/acl.c docpriv->user, acl_to_text(mode), user 754 lib/common/acl.c pcmk_acl_required(const char *user) user 756 lib/common/acl.c if (pcmk__str_empty(user)) { user 760 lib/common/acl.c } else if (!strcmp(user, CRM_DAEMON_USER) || !strcmp(user, "root")) { user 761 lib/common/acl.c crm_trace("ACLs not required for privileged user %s", user); user 764 lib/common/acl.c crm_trace("ACLs required for %s", user); user 804 lib/common/acl.c const char *user = NULL; user 828 lib/common/acl.c user = effective_user; user 834 lib/common/acl.c user = effective_user; user 838 lib/common/acl.c user = requested_user; user 844 lib/common/acl.c user = peer_user; user 848 lib/common/acl.c user = peer_user; user 852 lib/common/acl.c user = requested_user; user 856 lib/common/acl.c if (user != crm_element_value(request, PCMK_XE_ACL_TARGET)) { user 857 lib/common/acl.c crm_xml_add(request, PCMK_XE_ACL_TARGET, user); user 860 lib/common/acl.c if (field != NULL && user != crm_element_value(request, field)) { user 861 lib/common/acl.c crm_xml_add(request, field, user); user 48 lib/common/crmcommon_private.h char *user; user 104 lib/common/crmcommon_private.h void pcmk__unpack_acl(xmlNode *source, xmlNode *target, const char *user); user 107 lib/common/crmcommon_private.h bool pcmk__is_user_in_group(const char *user, const char *group); user 169 lib/common/ipc_server.c client->user = pcmk__uid2username(uid_client); user 170 lib/common/ipc_server.c if (client->user == NULL) { user 171 lib/common/ipc_server.c client->user = pcmk__str_copy("#unprivileged"); user 314 lib/common/ipc_server.c free(c->user); user 981 lib/common/logging.c const char *user = getenv("USER"); user 983 lib/common/logging.c if (user != NULL && !pcmk__strcase_any_of(user, "root", CRM_DAEMON_USER, NULL)) { user 984 lib/common/logging.c crm_trace("Not switching to corefile directory for %s", user); user 990 lib/common/logging.c int user = getuid(); user 991 lib/common/logging.c struct passwd *pwent = getpwuid(user); user 994 lib/common/logging.c crm_perror(LOG_ERR, "Cannot get name for uid: %d", user); user 53 lib/common/utils.c pcmk__is_user_in_group(const char *user, const char *group) user 58 lib/common/utils.c if (user == NULL || group == NULL) { user 74 lib/common/utils.c if (!strcmp(user, *gr_mem++)) { user 197 lib/common/xml.c free(docpriv->user); user 198 lib/common/xml.c docpriv->user = NULL; user 303 lib/common/xml.c xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls) user 313 lib/common/xml.c pcmk__unpack_acl(acl_source, xml, user); user 215 lib/pengine/pe_output.c last_changed_string(const char *last_written, const char *user, user 217 lib/pengine/pe_output.c if (last_written != NULL || user != NULL || client != NULL || origin != NULL) { user 220 lib/pengine/pe_output.c user ? " by " : "", user 221 lib/pengine/pe_output.c user ? user : "", user 441 lib/pengine/pe_output.c const char *user = crm_element_value(scheduler->input, user 450 lib/pengine/pe_output.c scheduler->localhost, last_written, user, client, origin); user 516 lib/pengine/pe_output.c const char *user = crm_element_value(scheduler->input, user 525 lib/pengine/pe_output.c scheduler->localhost, last_written, user, client, origin); user 1295 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 1327 lib/pengine/pe_output.c time_s = last_changed_string(last_written, user, client, origin); user 1340 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 1353 lib/pengine/pe_output.c PCMK_XA_USER, pcmk__s(user, ""), user 1368 lib/pengine/pe_output.c const char *user = va_arg(args, const char *); user 1379 lib/pengine/pe_output.c time_s = last_changed_string(last_written, user, client, origin); user 443 lib/services/services.c services_action_user(svc_action_t *op, const char *user) user 445 lib/services/services.c CRM_CHECK((op != NULL) && (user != NULL), return -EINVAL); user 446 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);