kern/159663: sockets don't work though nullfs mounts

Mikolaj Golub trociny at
Tue Sep 27 06:49:14 UTC 2011

On Tue, 27 Sep 2011 07:36:28 +0200 Robert Millan wrote:

 RM> 2011/9/25 Mikolaj Golub <trociny at>:
 >> As a proof of concept below is a patch that implements it.

 RM> This works very well, I'm currently using your patch to run X11 over a
 RM> nullfs-mounted /tmp.

 >> The issues with this approach I see so far:
 >> - we need an additional flag for namei;

 RM> What does this involve?

Well, adding yet another flag just to handle this one case might be not very
good idea :-)

But actually it is possible to do without the additional flag, with the only
hack in nullfs code: in lookup and create return lower vnode if it is a
socket, like in the patch below. It works for me but I have not tested much
and not checked yet if use cases are possible when this makes undesirable

Mikolaj Golub

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nullfs.VSOCK.patch
Type: text/x-diff
Size: 1241 bytes
Desc: not available
Url :

More information about the freebsd-bugs mailing list