ucred 1501 lib/common/ipc_client.c struct ucred ucred; ucred 1502 lib/common/ipc_client.c socklen_t ucred_len = sizeof(ucred); ucred 1504 lib/common/ipc_client.c if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &ucred_len) < 0) { ucred 1506 lib/common/ipc_client.c } else if (ucred_len != sizeof(ucred)) { ucred 1509 lib/common/ipc_client.c found_pid = ucred.pid; ucred 1510 lib/common/ipc_client.c found_uid = ucred.uid; ucred 1511 lib/common/ipc_client.c found_gid = ucred.gid; ucred 1547 lib/common/ipc_client.c ucred_t *ucred = NULL; ucred 1549 lib/common/ipc_client.c if (getpeerucred(sock, &ucred) < 0) { ucred 1552 lib/common/ipc_client.c found_pid = ucred_getpid(ucred); ucred 1553 lib/common/ipc_client.c found_uid = ucred_geteuid(ucred); ucred 1554 lib/common/ipc_client.c found_gid = ucred_getegid(ucred); ucred 1555 lib/common/ipc_client.c ucred_free(ucred);