Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 09:59:29 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, 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>
In-Reply-To: <20010817222656.C01B43E2F@bazooka.unixfreak.org>; from dima@unixfreak.org on Fri, Aug 17, 2001 at 03:26:51PM -0700
References:  <20010817222445.304233E28@bazooka.unixfreak.org> <20010817222656.C01B43E2F@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 17, 2001 at 03:26:51PM -0700, Dima Dorfman wrote:
> Dima Dorfman <dima@unixfreak.org> writes:
> > Garrett Wollman <wollman@khavrinen.lcs.mit.edu> writes:
> > > <<On Fri, 17 Aug 2001 15:01:18 -0700 (PDT), Dima Dorfman <dd@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010818095929.A80595>