linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] NFS User Namespaces
@ 2020-10-21 12:05 Sargun Dhillon
  2020-10-21 12:05 ` [PATCH v3 1/3] NFS: NFSv2/NFSv3: Use cred from fs_context during mount Sargun Dhillon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sargun Dhillon @ 2020-10-21 12:05 UTC (permalink / raw)
  To: J . Bruce Fields, Chuck Lever, Trond Myklebust, Anna Schumaker,
	David Howells, Scott Mayhew
  Cc: Sargun Dhillon, linux-fsdevel, linux-nfs, kylea

This patchset adds some functionality to allow NFS to be used from
containers. It piggybacks on the previous work Trond did to properly
encode, and decode UIDs / GIDs based on user namespaces, and the work
that Scott did in order to use the new fs_context API.

I removed the samples in this patchset, and I added safety in this re-roll.

We can likely "pull back" on this safety over time, in that we can
enable/disable id mapping per mount, and add some logic to make nfs4idmap
user namespace aware. Doing this for GSS is more complicated though.


Changes since v2:
  * Removed samples
  * Split out NFSv2/v3 patchset from NFSv4 patchset
  * Added restrictions around use
Changes since v1:
  * Added samples

Sargun Dhillon (3):
  NFS: NFSv2/NFSv3: Use cred from fs_context during mount
  NFSv4: Refactor: reference user namespace from nfs4idmap
  NFSv4: Refactor NFS to be use user namespaces

 fs/nfs/client.c     | 10 ++++++++--
 fs/nfs/nfs4client.c | 27 ++++++++++++++++++++++++++-
 fs/nfs/nfs4idmap.c  | 17 +++++++++--------
 fs/nfs/nfs4idmap.h  |  3 ++-
 4 files changed, 45 insertions(+), 12 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2020-10-21 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 12:05 [PATCH v3 0/3] NFS User Namespaces Sargun Dhillon
2020-10-21 12:05 ` [PATCH v3 1/3] NFS: NFSv2/NFSv3: Use cred from fs_context during mount Sargun Dhillon
2020-10-21 12:05 ` [PATCH v3 2/3] NFSv4: Refactor: reference user namespace from nfs4idmap Sargun Dhillon
2020-10-21 12:05 ` [PATCH v3 3/3] NFSv4: Refactor NFS to be use user namespaces Sargun Dhillon

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).