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)
Apr 14 2024, 2:07 PM
Unknown Object (File)
Apr 14 2024, 2:00 PM
Unknown Object (File)
Apr 14 2024, 1:22 PM
Unknown Object (File)
Apr 7 2024, 3:57 AM
Unknown Object (File)
Jan 13 2024, 2:53 AM
Unknown Object (File)
Dec 20 2023, 3:01 AM
Unknown Object (File)
Nov 24 2023, 8:12 AM
Unknown Object (File)
Nov 23 2023, 4:26 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 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.