sock 217 include/crm/common/ipc.h int crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid, sock 23 include/crm/common/remote_internal.h void (*callback) (void *userdata, int rc, int sock)); sock 307 lib/common/crmcommon_private.h int pcmk__crm_ipc_is_authentic_process(qb_ipcc_connection_t *qb_ipc, int sock, uid_t refuid, gid_t refgid, sock 1305 lib/common/ipc_client.c pcmk__crm_ipc_is_authentic_process(qb_ipcc_connection_t *qb_ipc, int sock, uid_t refuid, gid_t refgid, sock 1322 lib/common/ipc_client.c if (!getsockopt(sock, SOL_SOCKET, SO_PEERCRED, sock 1331 lib/common/ipc_client.c if (!getsockopt(sock, SOL_SOCKET, SO_PEERCRED, sock 1338 lib/common/ipc_client.c if (!getpeereid(sock, &found_uid, &found_gid)) { sock 1343 lib/common/ipc_client.c if (!getpeerucred(sock, &ucred)) { sock 1382 lib/common/ipc_client.c crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid, sock 1385 lib/common/ipc_client.c int ret = pcmk__crm_ipc_is_authentic_process(NULL, sock, refuid, refgid, sock 412 lib/common/remote.c send_plaintext(int sock, struct iovec *iov) sock 423 lib/common/remote.c (unsigned long long) unsent_len, sock); sock 425 lib/common/remote.c write_rc = write(sock, unsent, unsent_len); sock 431 lib/common/remote.c (unsigned long long) unsent_len, sock); sock 437 lib/common/remote.c pcmk_rc_str(rc), rc, sock); sock 636 lib/common/remote.c int sock = 0; sock 641 lib/common/remote.c sock = get_remote_socket(remote); sock 642 lib/common/remote.c if (sock <= 0) { sock 650 lib/common/remote.c fds.fd = sock; sock 842 lib/common/remote.c int sock; sock 846 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock); sock 867 lib/common/remote.c FD_SET(cb_data->sock, &rset); sock 869 lib/common/remote.c rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts); sock 881 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 888 lib/common/remote.c cb_data->sock); sock 893 lib/common/remote.c } else if (FD_ISSET(cb_data->sock, &rset) sock 894 lib/common/remote.c || FD_ISSET(cb_data->sock, &wset)) { sock 900 lib/common/remote.c if (getsockopt(cb_data->sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { sock 903 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 907 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 914 lib/common/remote.c "read/write sets", cb_data->sock); sock 920 lib/common/remote.c crm_trace("Socket %d is connected", cb_data->sock); sock 922 lib/common/remote.c close(cb_data->sock); sock 923 lib/common/remote.c cb_data->sock = -1; sock 927 lib/common/remote.c cb_data->callback(cb_data->userdata, rc, cb_data->sock); sock 952 lib/common/remote.c connect_socket_retry(int sock, const struct sockaddr *addr, socklen_t addrlen, sock 954 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 961 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 968 lib/common/remote.c rc = connect(sock, addr, addrlen); sock 979 lib/common/remote.c cb_data->sock = sock; sock 1003 lib/common/remote.c interval, sock); sock 1025 lib/common/remote.c connect_socket_once(int sock, const struct sockaddr *addr, socklen_t addrlen) sock 1027 lib/common/remote.c int rc = connect(sock, addr, addrlen); sock 1036 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 1065 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 1073 lib/common/remote.c int sock = -1; sock 1108 lib/common/remote.c sock = socket(rp->ai_family, SOCK_STREAM, IPPROTO_TCP); sock 1109 lib/common/remote.c if (sock == -1) { sock 1129 lib/common/remote.c if (connect_socket_retry(sock, rp->ai_addr, rp->ai_addrlen, timeout, sock 1134 lib/common/remote.c } else if (connect_socket_once(sock, rp->ai_addr, sock 1140 lib/common/remote.c close(sock); sock 1141 lib/common/remote.c sock = -1; sock 1150 lib/common/remote.c *sock_fd = sock; sock 89 lib/lrmd/lrmd_client.c int sock; sock 572 lib/lrmd/lrmd_client.c if (native->sock) { sock 573 lib/lrmd/lrmd_client.c close(native->sock); sock 587 lib/lrmd/lrmd_client.c native->sock = 0; sock 590 lib/lrmd/lrmd_client.c native->sock = 0; sock 1353 lib/lrmd/lrmd_client.c native->source = mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, sock 1371 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock) sock 1392 lib/lrmd/lrmd_client.c native->sock = sock; sock 1408 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(sock, GNUTLS_CLIENT, sock 1442 lib/lrmd/lrmd_client.c native->sock = -1; sock 1444 lib/lrmd/lrmd_client.c &(native->sock), lrmd, lrmd_tcp_connect_cb); sock 1465 lib/lrmd/lrmd_client.c native->sock = -1; sock 1467 lib/lrmd/lrmd_client.c &(native->sock), NULL, NULL); sock 1486 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(native->sock, GNUTLS_CLIENT, sock 1507 lib/lrmd/lrmd_client.c *fd = native->sock; sock 1622 lib/lrmd/lrmd_client.c } else if (native->sock) { sock 1623 lib/lrmd/lrmd_client.c close(native->sock); sock 1624 lib/lrmd/lrmd_client.c native->sock = 0;