ucred 1500 lib/common/ipc_client.c struct ucred ucred; ucred 1501 lib/common/ipc_client.c socklen_t ucred_len = sizeof(ucred); ucred 1503 lib/common/ipc_client.c if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &ucred_len) < 0) { ucred 1505 lib/common/ipc_client.c } else if (ucred_len != sizeof(ucred)) { ucred 1508 lib/common/ipc_client.c found_pid = ucred.pid; ucred 1509 lib/common/ipc_client.c found_uid = ucred.uid; ucred 1510 lib/common/ipc_client.c found_gid = ucred.gid; ucred 1546 lib/common/ipc_client.c ucred_t *ucred = NULL; ucred 1548 lib/common/ipc_client.c if (getpeerucred(sock, &ucred) < 0) { ucred 1551 lib/common/ipc_client.c found_pid = ucred_getpid(ucred); ucred 1552 lib/common/ipc_client.c found_uid = ucred_geteuid(ucred); ucred 1553 lib/common/ipc_client.c found_gid = ucred_getegid(ucred); ucred 1554 lib/common/ipc_client.c ucred_free(ucred);