]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337222:
authorasomers <asomers@FreeBSD.org>
Mon, 1 Oct 2018 17:36:58 +0000 (17:36 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 1 Oct 2018 17:36:58 +0000 (17:36 +0000)
commit200ef171848fbbedc3006f87935f314231d74f80
treedb24a643a7aef3f0dbab6c7924ecf4f392579a77
parent068805533d0a01a1f86df896ad90065343122e2b
MFC r337222:

Fix LOCAL_PEERCRED with socketpair(2)

Enable the LOCAL_PEERCRED socket option for unix domain stream sockets
created with socketpair(2). Previously, it only worked with unix domain
stream sockets created with socket(2)/listen(2)/connect(2)/accept(2).

PR: 176419
Reported by: Nicholas Wilson <nicholas@nicholaswilson.me.uk>
Differential Revision: https://reviews.freebsd.org/D16350
sys/kern/uipc_syscalls.c
sys/kern/uipc_usrreq.c
sys/sys/unpcb.h
tests/sys/kern/Makefile
tests/sys/kern/unix_socketpair_test.c [new file with mode: 0644]