From owner-cvs-all Sat Aug 18 1:59:48 2001 Delivered-To: cvs-all@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 1431737B411; Sat, 18 Aug 2001 01:59:36 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 18 Aug 2001 09:59:34 +0100 (BST) Date: Sat, 18 Aug 2001 09:59:29 +0100 From: David Malone To: Dima Dorfman 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 Message-ID: <20010818095929.A80595@walton.maths.tcd.ie> References: <20010817222445.304233E28@bazooka.unixfreak.org> <20010817222656.C01B43E2F@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010817222656.C01B43E2F@bazooka.unixfreak.org>; from dima@unixfreak.org on Fri, Aug 17, 2001 at 03:26:51PM -0700 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 On Fri, Aug 17, 2001 at 03:26:51PM -0700, Dima Dorfman wrote: > 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. The xucred structure is also used by the getcred sysctls used by identd. This is also a case where the process that the creds belong to may be long gone. (In this case it gives the creds of the caller of socket(2)). David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message