Lines Matching defs:credentials
53 } Credentials;
56 typedef void BytesListener(Credentials credentials, char* bytes, size_t size);
95 /** Credentials. Used for CONNECTION and CONNECTION_REQUEST. */
96 Credentials credentials;
164 /** Credentials of the remote process. */
165 Credentials credentials;
204 /** Credentials of the master peer. */
205 static const Credentials MASTER_CREDENTIALS = {0, 0, 0};
208 static PeerProxy* peerProxyCreate(Peer* peer, Credentials credentials);
368 hashmapRemove(otherPeer->connections, &(deadPeer->credentials.pid));
377 LOGI("Peer %d died. errno: %s", peerProxy->credentials.pid,
380 LOGI("Peer %d died.", peerProxy->credentials.pid);
389 pid_t pid = peerProxy->credentials.pid;
395 = peerProxy->credentials.pid;
625 Credentials credentials;
626 credentials.pid = pid;
631 credentials.uid = 0;
632 credentials.gid = 0;
644 packet->header.credentials = credentials;
648 peerProxy = peerProxyCreate(peer, credentials);
674 masterProxy->credentials.pid);
685 pid_t pid = header->credentials.pid;
691 // Fill in full credentials.
692 peerProxy->credentials = header->credentials;
788 peerProxy->credentials.pid);
825 " dead.", peerA->credentials.pid, peerB->credentials.pid);
832 packetA->header.credentials = peerB->credentials;
833 packetB->header.credentials = peerA->credentials;
852 Credentials credentials) {
856 " dead.", peerProxy->credentials.pid, credentials.pid);
861 packet->header.credentials = credentials;
873 pid_t targetPid = header->credentials.pid;
880 masterReportConnectionError(peerProxy, header->credentials);
898 pid_t pid = header->credentials.pid;
932 LOGW("Invalid packet type from %d: %d", peerProxy->credentials.pid,
984 peerProxy->peer->onBytes(peerProxy->credentials,
999 static PeerProxy* peerProxyCreate(Peer* peer, Credentials credentials) {
1012 peerProxy->credentials = credentials;
1019 pid_t* pid = &(peerProxy->credentials.pid);
1035 // Get credentials.
1036 Credentials credentials;
1049 credentials.pid = ucredentials.pid;
1050 credentials.uid = ucredentials.uid;
1051 credentials.gid = ucredentials.gid;
1053 LOGI("Accepted connection from process %d.", credentials.pid);
1061 = hashmapGet(masterPeer->peerProxies, &credentials.pid);
1064 LOGW("Alread connected to process %d.", credentials.pid);
1079 peerProxy = peerProxyCreate(masterPeer, credentials);