Page MenuHomeFreeBSD

vfs: Permit unix sockets to be opened with O_PATH
ClosedPublic

Authored by markj on Sep 15 2021, 4:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 10, 11:58 AM
Unknown Object (File)
Mon, Aug 10, 11:57 AM
Unknown Object (File)
Wed, Aug 5, 6:40 AM
Unknown Object (File)
Tue, Aug 4, 8:23 AM
Unknown Object (File)
Jul 22 2026, 2:42 AM
Unknown Object (File)
Jul 21 2026, 8:03 AM
Unknown Object (File)
Jul 19 2026, 7:14 PM
Unknown Object (File)
Jul 19 2026, 3:02 AM

Details

Summary

This is compatible with Linux. In principle connectat(2) and bindat(2)
could be modified to support an AT_EMPTY_PATH-like mode which operates
on the socket referenced by an O_PATH fd referencing a unix socket.
That would eliminate the path length limit imposed by sockaddr_un.
(That is not quite enough to make syslog(3) work in capability mode,
since syslog(3) has to handle the possibility that syslogd was
restarted, in which case we must re-resolve the /var/run/log path.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41528
Build 38417: arc lint + arc unit