Page MenuHomeFreeBSD

Fix LOCAL_PEERCRED with socketpair(2)
ClosedPublic

Authored by asomers on Jul 19 2018, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 14, 1:00 PM
Unknown Object (File)
Sun, Jan 12, 4:28 PM
Unknown Object (File)
Wed, Jan 8, 2:08 AM
Unknown Object (File)
Dec 2 2024, 8:17 PM
Unknown Object (File)
Nov 13 2024, 3:24 PM
Unknown Object (File)
Oct 20 2024, 12:44 AM
Unknown Object (File)
Oct 17 2024, 5:39 PM
Unknown Object (File)
Oct 4 2024, 4:48 AM
Subscribers

Details

Summary

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

Test Plan

Added a test case for the new functionality. Regressed old functionality with
tools/regression/sockets/unix_cmsg.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 3 2018, 1:37 AM
This revision was automatically updated to reflect the committed changes.