Page MenuHomeFreeBSD

Clean up documentation of AF_UNIX control messages.
ClosedPublic

Authored by jilles on Jan 22 2017, 10:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 26 2024, 1:22 AM
Unknown Object (File)
Dec 20 2023, 1:29 AM
Unknown Object (File)
Nov 14 2023, 8:06 AM
Unknown Object (File)
Nov 12 2023, 8:12 AM
Unknown Object (File)
Nov 10 2023, 8:08 AM
Unknown Object (File)
Nov 9 2023, 6:31 AM
Unknown Object (File)
Nov 7 2023, 1:04 PM
Unknown Object (File)
Nov 7 2023, 6:32 AM
Subscribers

Details

Summary

Document AF_UNIX control messages in unix(4) only, not split between
unix(4) and recv(2).

Also, warn about LOCAL_CREDS effective uid/gid fields, since the
write could be from a setuid or setgid program (with the explicit SCM_CREDS
and LOCAL_PEERCRED, the credentials are read at such a time that it can
be assumed that the process intends for them to be used in this context).

Test Plan

igor without options only complains about the date (.Dd).

Diff Detail

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

Event Timeline

jilles retitled this revision from to Clean up documentation of AF_UNIX control messages..
jilles updated this object.
jilles edited the test plan for this revision. (Show Details)
wblock added inline comments.
share/man/man4/unix.4
141 ↗(On Diff #24330)

Combine these two lines:

To send file descriptors, the message type is
165 ↗(On Diff #24330)

Rearrange to get rid of the apostrophe:

Credentials of the sending process can be transmitted explicitly using a
184 ↗(On Diff #24330)
The sender should pass a zeroed buffer which will be filled in by the system.
195 ↗(On Diff #24330)
The sending process could have exited and its process ID already been
jilles edited edge metadata.

Language fixes from wblock.

wblock added a reviewer: wblock.
This revision is now accepted and ready to land.Feb 3 2017, 4:47 PM
This revision was automatically updated to reflect the committed changes.