The following patchset aims to allow the configuration of a 'chroot jail' to rpc.nfsd, and allowing us to export a filesystem /foo (and possibly subtrees) as '/'. Trond Myklebust (5): mountd: Ensure we don't share cache file descriptors among processes. Add a simple workqueue mechanism Add a helper to write to a file through the chrooted thread Add support for chrooted exports Add support for chroot in exportfs aclocal/libpthread.m4 | 13 +- configure.ac | 6 +- nfs.conf | 1 + support/include/misc.h | 11 ++ support/misc/Makefile.am | 2 +- support/misc/workqueue.c | 267 +++++++++++++++++++++++++++++++++++++ systemd/nfs.conf.man | 3 +- utils/exportfs/Makefile.am | 2 +- utils/exportfs/exportfs.c | 31 ++++- utils/mountd/Makefile.am | 3 +- utils/mountd/cache.c | 39 +++++- utils/mountd/mountd.c | 5 +- utils/nfsd/nfsd.man | 4 + 13 files changed, 369 insertions(+), 18 deletions(-) create mode 100644 support/misc/workqueue.c -- 2.21.0