Page MenuHomeFreeBSD

nullfs: Allow VSOCK to be mounted on top of another VSOCK
AcceptedPublic

Authored by dtxdf on Mon, Aug 24, 7:22 PM.
Tags
Referenced Files
Unknown Object (File)
Tue, Aug 25, 6:05 AM
Unknown Object (File)
Tue, Aug 25, 3:29 AM
Unknown Object (File)
Tue, Aug 25, 1:31 AM
Unknown Object (File)
Tue, Aug 25, 1:28 AM
Unknown Object (File)
Tue, Aug 25, 1:13 AM
Unknown Object (File)
Tue, Aug 25, 12:04 AM
Unknown Object (File)
Mon, Aug 24, 11:57 PM
Unknown Object (File)
Mon, Aug 24, 10:56 PM
Subscribers

Details

Reviewers
dfr
olce
Summary

In the world of containers, mounting a unix(4) socket is a common practice to allow communication between processes within containers. For example, both Podman and Docker can expose a unix(4) socket, and that same unix(4) socket can be mounted as a file accessible to a process inside a container, allowing that application to control Podman or Docker. Another example is PHP-FPM with NGINX, where, instead of using TCP/IP for communication between containers, a unix(4) socket is sufficient.

However, nullfs(4) and all related components do not allow mounting one VSOCK on top of another. The current workaround involves creating the socket in a directory and mounting that directory. This is an option, though it does not provide a good user experience compared to directly mounting one VSOCK on top of another, since the application that creates the socket may create other sockets in that directory, and the user may not wish to share them, or, worse yet, applications that create unix(4) sockets may not provide any authentication at all, as they may assume that security at the file system level is sufficient.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dtxdf requested review of this revision.Mon, Aug 24, 7:22 PM
dtxdf updated this revision to Diff 184935.
  • Update man page.

manpage changes looks good, should we Relnotes this?

manpage changes looks good, should we Relnotes this?

That would be great!

Looks good to me, although I haven't tested it yet.

This revision is now accepted and ready to land.Wed, Aug 26, 9:14 AM