From owner-cvs-all Fri Aug 17 15:27:17 2001 Delivered-To: cvs-all@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id AFF2137B414; Fri, 17 Aug 2001 15:27:05 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: by bazooka.unixfreak.org (Postfix, from userid 1000) id C01B43E2F; Fri, 17 Aug 2001 15:26:56 -0700 (PDT) Received: from bazooka.unixfreak.org (localhost [127.0.0.1]) by bazooka.unixfreak.org (Postfix) with ESMTP id B4D6F3C12B; Fri, 17 Aug 2001 15:26:56 -0700 (PDT) Cc: Garrett Wollman , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys un.h unpcb.h src/sys/kern uipc_proto.c uipc_usrreq.c src/share/man/man4 unix.4 In-Reply-To: <20010817222445.304233E28@bazooka.unixfreak.org>; from dima@unixfreak.org on "Fri, 17 Aug 2001 15:24:40 -0700" Date: Fri, 17 Aug 2001 15:26:51 -0700 From: Dima Dorfman Message-Id: <20010817222656.C01B43E2F@bazooka.unixfreak.org> 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 Dima Dorfman writes: > Garrett Wollman writes: > > < said: > > > > > Implement a LOCAL_PEERCRED socket option which returns a > > > `struct xucred` with the credentials of the connected peer. > > > > It should return `struct cmsgcred' instead -- no need for more than > > one socket credential structure. > > Okay, I'll change it, but I wish you'd have told me about this when it > was up for discussion on -arch or -audit. Actually, I think `struct cmsgcred` won't work in this case, since there's no reasonable value for the cmesg_pid field. This socket option is supposed to return the credentials at the time of connect(2) or listen(2), and the process that made that call may not even exist anymore. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message