Lines Matching defs:socket_name
387 static bool sss_cli_check_version(const char *socket_name)
397 if (strcmp(socket_name, SSS_NSS_SOCKET_NAME) == 0) {
399 } else if (strcmp(socket_name, SSS_PAM_SOCKET_NAME) == 0 ||
400 strcmp(socket_name, SSS_PAM_PRIV_SOCKET_NAME) == 0) {
402 } else if (strcmp(socket_name, SSS_SUDO_SOCKET_NAME) == 0) {
404 } else if (strcmp(socket_name, SSS_AUTOFS_SOCKET_NAME) == 0) {
406 } else if (strcmp(socket_name, SSS_SSH_SOCKET_NAME) == 0) {
408 } else if (strcmp(socket_name, SSS_PAC_SOCKET_NAME) == 0) {
527 static int sss_cli_open_socket(int *errnop, const char *socket_name)
540 strncpy(nssaddr.sun_path, socket_name,
541 strlen(socket_name) + 1);
627 static enum sss_status sss_cli_check_socket(int *errnop, const char *socket_name)
693 mysd = sss_cli_open_socket(errnop, socket_name);
700 if (sss_cli_check_version(socket_name)) {
858 const char *socket_name;
871 socket_name = SSS_PAM_PRIV_SOCKET_NAME;
872 statret = stat(socket_name, &stat_buf);
886 socket_name = SSS_PAM_SOCKET_NAME;
887 statret = stat(socket_name, &stat_buf);
902 status = sss_cli_check_socket(errnop, socket_name);
919 status = sss_cli_check_socket(errnop, socket_name);
957 const char *socket_name)
961 ret = sss_cli_check_socket(errnop, socket_name);
969 ret = sss_cli_check_socket(errnop, socket_name);