From: Jeff Dike <jdike@ka...> - 2001-08-24 21:07:37
> If you have / as a hostfs (via ubd0=somedir), then daemons which wish
> to open Unix domain sockets in /var/run fail because one is not
> permitted to make sockets via mknod(2) on the host file system...
Yup. The semantics of hostfs inside UML are not a perfect match for the local
filesystem on the host, mostly due to permissions. You are root in UML, but
there are things you can't do in a hostfs filesystem. hostfs is similar to
NFS in this regard.
There's been some mumbling here about fixing that by putting changes that you
aren't allowed to do for real inside magic files and having hostfs use the
information in those file over what's in the actual filesystem. So, if you
mknod a device file, this will cause a new entry to go in a file rather than
attempting (and failing) to do a mknod on the host. Then readdir will see
that a device node "exists" and make it appear to be real.