Subject: CVS commit: src
To: None <>
From: Havard Eidnes <>
List: source-changes
Date: 08/09/2007 15:23:04
Module Name:	src
Committed By:	he
Date:		Thu Aug  9 15:23:04 UTC 2007

Modified Files:
	src/distrib/sets/lists/base: shl.mi
	src/distrib/sets/lists/comp: mi
	src/include: unistd.h
	src/lib/libc: shlib_version
	src/share/man/man4: unix.4
	src/sys/kern: uipc_usrreq.c
	src/sys/sys: un.h unpcb.h
Added Files:
	src/lib/libc/net: getpeereid.3 getpeereid.c

Log Message:
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.

To generate a diff of this commit:
cvs rdiff -r1.398 -r1.399 src/distrib/sets/lists/base/shl.mi
cvs rdiff -r1.1059 -r1.1060 src/distrib/sets/lists/comp/mi
cvs rdiff -r1.112 -r1.113 src/include/unistd.h
cvs rdiff -r1.187 -r1.188 src/lib/libc/shlib_version
cvs rdiff -r1.71 -r1.72 src/lib/libc/net/
cvs rdiff -r0 -r1.1 src/lib/libc/net/getpeereid.3 \
cvs rdiff -r1.18 -r1.19 src/share/man/man4/unix.4
cvs rdiff -r1.98 -r1.99 src/sys/kern/uipc_usrreq.c
cvs rdiff -r1.39 -r1.40 src/sys/sys/un.h
cvs rdiff -r1.14 -r1.15 src/sys/sys/unpcb.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.