pwentry 94 daemons/based/pacemaker-based.c struct passwd *pwentry = NULL; pwentry 121 daemons/based/pacemaker-based.c pwentry = getpwnam(CRM_DAEMON_USER); pwentry 122 daemons/based/pacemaker-based.c CRM_CHECK(pwentry != NULL, pwentry 126 daemons/based/pacemaker-based.c rc = setgid(pwentry->pw_gid); pwentry 128 daemons/based/pacemaker-based.c crm_perror(LOG_ERR, "Could not set group to %d", pwentry->pw_gid); pwentry 132 daemons/based/pacemaker-based.c rc = initgroups(CRM_DAEMON_USER, pwentry->pw_gid); pwentry 134 daemons/based/pacemaker-based.c crm_perror(LOG_ERR, "Could not setup groups for user %d", pwentry->pw_uid); pwentry 138 daemons/based/pacemaker-based.c rc = setuid(pwentry->pw_uid); pwentry 140 daemons/based/pacemaker-based.c crm_perror(LOG_ERR, "Could not set user to %d", pwentry->pw_uid); pwentry 134 lib/common/utils.c struct passwd *pwentry = NULL; pwentry 141 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PW_BUFFER_LEN, &pwentry); pwentry 142 lib/common/utils.c if (pwentry) { pwentry 144 lib/common/utils.c *uid = pwentry->pw_uid; pwentry 147 lib/common/utils.c *gid = pwentry->pw_gid; pwentry 149 lib/common/utils.c crm_trace("User %s has uid=%d gid=%d", name, pwentry->pw_uid, pwentry->pw_gid);