Page MenuHomeFreeBSD

Fix LOCAL_PEERCRED with socketpair(2)
ClosedPublic

Authored by asomers on Jul 19 2018, 4:21 PM.
Tags
None
Referenced Files
F161856003: D16350.diff
Tue, Jul 7, 11:18 AM
Unknown Object (File)
Mon, Jul 6, 2:40 PM
Unknown Object (File)
Mon, Jul 6, 1:43 PM
Unknown Object (File)
Sun, Jul 5, 1:42 PM
Unknown Object (File)
Jun 5 2026, 4:38 PM
Unknown Object (File)
Jun 3 2026, 6:35 PM
Unknown Object (File)
Jun 3 2026, 12:34 AM
Unknown Object (File)
Jun 1 2026, 3:28 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 Passed
Unit
No Test Coverage
Build Status
Buildable 18170
Build 17904: arc lint + arc unit

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.