|
|
Log in / Subscribe / Register

NFS User Namespaces

From:  Sargun Dhillon <sargun-AT-sargun.me>
To:  "J . Bruce Fields" <bfields-AT-fieldses.org>, Chuck Lever <chuck.lever-AT-oracle.com>, Trond Myklebust <trond.myklebust-AT-hammerspace.com>, Anna Schumaker <anna.schumaker-AT-netapp.com>, David Howells <dhowells-AT-redhat.com>
Subject:  [PATCH v2 0/3] NFS User Namespaces
Date:  Fri, 16 Oct 2020 05:37:42 -0700
Message-ID:  <20201016123745.9510-1-sargun@sargun.me>
Cc:  Sargun Dhillon <sargun-AT-sargun.me>, linux-nfs-AT-vger.kernel.org, linux-fsdevel-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

This patchset adds some functionality to allow NFS to be used from
NFS namespaces (containers).

Changes since v1:
  * Added samples

Sargun Dhillon (3):
  NFS: Use cred from fscontext during fsmount
  samples/vfs: Split out common code for new syscall APIs
  samples/vfs: Add example leveraging NFS with new APIs and user
    namespaces

 fs/nfs/client.c                        |   2 +-
 fs/nfs/flexfilelayout/flexfilelayout.c |   1 +
 fs/nfs/nfs4client.c                    |   2 +-
 samples/vfs/.gitignore                 |   2 +
 samples/vfs/Makefile                   |   5 +-
 samples/vfs/test-fsmount.c             |  86 +-----------
 samples/vfs/test-nfs-userns.c          | 181 +++++++++++++++++++++++++
 samples/vfs/vfs-helper.c               |  43 ++++++
 samples/vfs/vfs-helper.h               |  55 ++++++++
 9 files changed, 289 insertions(+), 88 deletions(-)
 create mode 100644 samples/vfs/test-nfs-userns.c
 create mode 100644 samples/vfs/vfs-helper.c
 create mode 100644 samples/vfs/vfs-helper.h

-- 
2.25.1



Copyright © 2020, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds