From owner-cvs-all Fri Aug 17 15: 2:33 2001
Delivered-To: cvs-all@freebsd.org
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
by hub.freebsd.org (Postfix) with ESMTP
id 8D1E637B405; Fri, 17 Aug 2001 15:02:25 -0700 (PDT)
(envelope-from dd@FreeBSD.org)
Received: (from dd@localhost)
by freefall.freebsd.org (8.11.4/8.11.4) id f7HM1Id35219;
Fri, 17 Aug 2001 15:01:18 -0700 (PDT)
(envelope-from dd)
Message-Id: <200108172201.f7HM1Id35219@freefall.freebsd.org>
From: Dima Dorfman
Date: Fri, 17 Aug 2001 15:01:18 -0700 (PDT)
To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject: cvs commit: src/sys/sys un.h unpcb.h src/sys/kern uipc_proto.c
uipc_usrreq.c src/share/man/man4 unix.4
X-FreeBSD-CVS-Branch: HEAD
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID:
List-Archive: (Web Archive)
List-Help: (List Instructions)
List-Subscribe:
List-Unsubscribe:
X-Loop: FreeBSD.ORG
dd 2001/08/17 15:01:18 PDT
Modified files:
sys/sys un.h unpcb.h
sys/kern uipc_proto.c uipc_usrreq.c
share/man/man4 unix.4
Log:
Implement a LOCAL_PEERCRED socket option which returns a
`struct xucred` with the credentials of the connected peer.
Obviously this only works (and makes sense) on SOCK_STREAM
sockets. This works for both the connect(2) and listen(2)
callers.
There is precise documentation of the semantics in unix(4).
Reviewed by: dwmalone (eyeballed)
Revision Changes Path
1.18 +5 -1 src/sys/sys/un.h
1.12 +20 -1 src/sys/sys/unpcb.h
1.22 +2 -2 src/sys/kern/uipc_proto.c
1.67 +82 -3 src/sys/kern/uipc_usrreq.c
1.5 +31 -2 src/share/man/man4/unix.4
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message