History log of /netbsd-src/lib/libc/net/getpeereid.c (Results 1 – 4 of 4)
Revision Date Author Comments
# 213aa76d 08-Aug-2021 nia <nia@NetBSD.org>

introduce a SOL_LOCAL for unix-domain socket level socket options
as an alias of the current 0 used for these options, as in FreeBSD.

reviewed by many.


# 5a7f327f 16-Feb-2018 christos <christos@NetBSD.org>

Enforce that getpeereid only returns success on AF_LOCAL sockets, instead
of returning garbage for other socket types.


# 3028e483 29-Apr-2008 martin <martin@NetBSD.org>

Convert to new 2 clause license


# fd961c44 09-Aug-2007 he <he@NetBSD.org>

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new l

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.

show more ...