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)
Fri, Oct 17, 7:41 PM
Unknown Object (File)
Fri, Oct 17, 10:45 AM
Unknown Object (File)
Fri, Oct 17, 10:45 AM
Unknown Object (File)
Fri, Oct 17, 1:15 AM
Unknown Object (File)
Tue, Oct 14, 6:34 AM
Unknown Object (File)
Thu, Sep 25, 12:50 PM
Unknown Object (File)
Tue, Sep 23, 12:06 AM
Unknown Object (File)
Sun, Sep 21, 8:59 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.