Home
last modified time | relevance | path

Searched refs:peer_cred (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/tools/testing/selftests/net/af_unix/
Dscm_pidfd.c299 struct ucred peer_cred; in client() local
347 len = sizeof(peer_cred); in client()
348 if (getsockopt(cfd, SOL_SOCKET, SO_PEERCRED, &peer_cred, &len)) { in client()
360 if (peer_cred.pid != getppid()) { in client()
361 log_err("peer_cred.pid != getppid(): %d != %d", peer_cred.pid, getppid()); in client()
367 if (peer_pid != peer_cred.pid) { in client()
368 log_err("peer_pid != peer_cred.pid: %d != %d", peer_pid, peer_cred.pid); in client()