summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getpeereid.c
Commit message (Collapse)AuthorAgeFilesLines
* o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. Itmaxim2002-12-161-1/+1
| | | | | | | | does not hurt anything because uipc_ctloutput() does not check sopt->sopt_level. Pointed out by: ru MFC after: 1 week
* o Fix bogus getsockopt(2) call: swap SOCK_STREAM and LOCAL_PEERCRED.maxim2002-12-151-1/+1
| | | | | | | | | The bug does not affect anything because SOCK_STREAM == LOCAL_PEERCRED == 0x1. PR: bin/46165 Submitted by: Alain Thivillon <at@rominet.net> Reviewed by: dd MFC after: 1 week
* Introduce a version field to `struct xucred' in place of one of thedd2002-02-271-0/+3
| | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson
* Fixed slipage in editor.obrien2002-02-011-0/+1
|
* Fix SCM ID's.obrien2002-02-011-4/+1
|
* Implement getpeereid(3), a front-end to the LOCAL_PEERCREDdd2001-08-171-0/+53
socket option for the Unix domain. It's weaker than the socket option (this only returns the uid and gid, while the socket opt. can return the entire group list), and is implemented mostly for compatibility with OpenBSD.
OpenPOWER on IntegriCloud