Date: Fri, 17 Aug 2001 15:26:51 -0700 From: 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: <20010817222656.C01B43E2F@bazooka.unixfreak.org> In-Reply-To: <20010817222445.304233E28@bazooka.unixfreak.org>; from dima@unixfreak.org on "Fri, 17 Aug 2001 15:24:40 -0700"
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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?20010817222656.C01B43E2F>