linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/7] Add a root_dir option to nfs.conf
@ 2019-05-21 12:46 Trond Myklebust
  2019-05-21 12:46 ` [RFC PATCH v2 1/7] mountd: Ensure we don't share cache file descriptors among processes Trond Myklebust
  2019-05-21 17:40 ` [RFC PATCH v2 0/7] Add a root_dir option to nfs.conf Chuck Lever
  0 siblings, 2 replies; 21+ messages in thread
From: Trond Myklebust @ 2019-05-21 12:46 UTC (permalink / raw)
  To: SteveD; +Cc: linux-nfs

The following patchset adds support for the 'root_dir' configuration
option for nfsd in nfs.conf. If a user sets this option to a valid
directory path, then nfsd will act as if it is confined to a chroot
jail based on that directory. All paths in /etc/exporfs and from
exportfs are then resolved relative to that directory.


Trond Myklebust (7):
  mountd: Ensure we don't share cache file descriptors among processes.
  Add a simple workqueue mechanism
  Add utilities for resolving nfsd paths and stat()ing them
  Add a helper to return the real path given an export entry
  Add helpers to read/write to a file through the chrooted thread
  Add support for the nfsd rootdir configuration option to rpc.mountd
  Add support for the nfsd root directory to exportfs

 aclocal/libpthread.m4       |  13 +-
 configure.ac                |   6 +-
 nfs.conf                    |   1 +
 support/export/export.c     |  24 +++
 support/include/Makefile.am |   2 +
 support/include/exportfs.h  |   1 +
 support/include/nfsd_path.h |  17 ++
 support/include/nfslib.h    |   1 +
 support/include/workqueue.h |  22 +++
 support/misc/Makefile.am    |   3 +-
 support/misc/mountpoint.c   |   5 +-
 support/misc/nfsd_path.c    | 175 +++++++++++++++++++++
 support/misc/workqueue.c    | 306 ++++++++++++++++++++++++++++++++++++
 support/nfs/exports.c       |   4 +
 systemd/nfs.conf.man        |   3 +-
 utils/exportfs/Makefile.am  |   2 +-
 utils/exportfs/exportfs.c   |  32 +++-
 utils/mountd/Makefile.am    |   3 +-
 utils/mountd/cache.c        |  79 +++++++---
 utils/mountd/mountd.c       |  13 +-
 utils/nfsd/nfsd.man         |   6 +
 21 files changed, 676 insertions(+), 42 deletions(-)
 create mode 100644 support/include/nfsd_path.h
 create mode 100644 support/include/workqueue.h
 create mode 100644 support/misc/nfsd_path.c
 create mode 100644 support/misc/workqueue.c

-- 
2.21.0


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2019-05-28 19:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21 12:46 [RFC PATCH v2 0/7] Add a root_dir option to nfs.conf Trond Myklebust
2019-05-21 12:46 ` [RFC PATCH v2 1/7] mountd: Ensure we don't share cache file descriptors among processes Trond Myklebust
2019-05-21 12:46   ` [RFC PATCH v2 2/7] Add a simple workqueue mechanism Trond Myklebust
2019-05-21 12:46     ` [RFC PATCH v2 3/7] Add utilities for resolving nfsd paths and stat()ing them Trond Myklebust
2019-05-21 12:46       ` [RFC PATCH v2 4/7] Add a helper to return the real path given an export entry Trond Myklebust
2019-05-21 12:46         ` [RFC PATCH v2 5/7] Add helpers to read/write to a file through the chrooted thread Trond Myklebust
2019-05-21 12:47           ` [RFC PATCH v2 6/7] Add support for the nfsd rootdir configuration option to rpc.mountd Trond Myklebust
2019-05-21 12:47             ` [RFC PATCH v2 7/7] Add support for the nfsd root directory to exportfs Trond Myklebust
2019-05-21 17:40 ` [RFC PATCH v2 0/7] Add a root_dir option to nfs.conf Chuck Lever
2019-05-21 18:17   ` Trond Myklebust
2019-05-21 18:59     ` Trond Myklebust
2019-05-21 19:06     ` Chuck Lever
2019-05-21 19:58       ` Trond Myklebust
2019-05-28 15:25         ` Steve Dickson
2019-05-28 16:44           ` Trond Myklebust
2019-05-28 16:47             ` Chuck Lever
2019-05-28 16:50               ` Trond Myklebust
2019-05-28 17:40             ` Steve Dickson
2019-05-28 18:19               ` Trond Myklebust
2019-05-28 19:33                 ` Steve Dickson
2019-05-28 15:30         ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).