NAME
|
drvfs – network driver file system |
SYNOPSIS
|
drvfs [ –a ] [ –D ] addr dir |
DESCRIPTION
|
Drvfs exports the file tree rooted at dir to the network. It listens
for 9P clients at the network address addr. Its purpose is to
export files from local drivers in a secure way. The exported
directory is usually a union mount for Plan 9 devices that can
be exported verbatim to the network of Plan B services. The program assumes that the tree exported is small, and creates a memory image for it (without file contents). It further assumes that the tree does not change. File creation and metadata updates are not allowed, file I/O is the only operation permitted, which suffices for device I/O. Different clients are attended by different processes, and there is no risk of one of them blocking the other ones due to device I/O requests. However, requests from the same client are attended one at a time. Drvfs authenticates its clients, unless flag –a is set. Permission checking is left to the underlying file systems. This means that all accesses are performed on the name of the user who started drvfs, and that client permissions mimic those of such user. Because of this, only devices that do not lead to potentially dangerous actions should be exported through this program, and extra care should be taken with the construction of the exported directory.
The –D flag enables 9P diagnostics. |
SOURCE
|
/sys/src/cmd/drvfs.c |
SEE ALSO
|
exportfs(4), mousefs(4), kbdfs(1), intro(3). |
BUGS
|
Connections to clients are not sGSrt i |