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)
Wed, Nov 13, 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
Unknown Object (File)
Sep 23 2024, 10:43 AM
Unknown Object (File)
Sep 8 2024, 8:40 AM
Unknown Object (File)
Sep 8 2024, 1:53 AM
Unknown Object (File)
Sep 7 2024, 5:04 PM
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.