This patch uses heuristics that seem dangerous to me:<p>> The 9P filesystem protocol relies on stateful file opens which map
protocol-level FIDs to host file descriptors. The FreeBSD vnode
interface doesn't really support this and we use heuristics to guess the
right FID to use for file operations. This can be confused by privilege
lowering and does not guarantee that the FID created for a given file
open is always used for file operations, even if the calling process is
using the file descriptor from the original open call. Improving this
would involve changes to the vnode interface which is out-of-scope for
this import.<p>Where would you use something with such unreliable heuristics??
Good Lord this brings back bad memories - I used 9p around 7 years ago for a secure government system, it was horrific. I did report the bug, with all the details etc, but it was basically unmaintained. IIRC the issue was it was using up file handles under pressure to a point where the host died.<p>It's a great idea but really hope it's better now.