linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] shiftfs reworked as a uid/gid shifting bind mount
@ 2019-12-03  1:13 James Bottomley
  2019-12-03  1:15 ` [PATCH 1/2] fs: introduce " James Bottomley
  2019-12-03  1:15 ` [PATCH 2/2] fs: expose shifting bind mount to userspace James Bottomley
  0 siblings, 2 replies; 11+ messages in thread
From: James Bottomley @ 2019-12-03  1:13 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: dhowells, Al Viro, Miklos Szeredi, Seth Forshee, Amir Goldstein

I've split these patches into two for easy review.  I think there's no
real point adding MS_SHIFT and letting the old mount API configure
this, so the second patch depends on the configfd proposal previously
sent since currently the new mount API is deficient in handling bind
mount properties.  However, for those of you who want to get it working
with the old API, simply adding MS_SHIFT and wiring it up to MNT_SHIFT
should work for now ... you can ignore all the part about the allow-
shift marking for test purposes ... I suspect the allow mechanism will
likely change, say to something xattr based, anyway.

James

---

James Bottomley (2):
  fs: introduce uid/gid shifting bind mount
  fs: expose shifting bind mount to userspace

 fs/attr.c             |  87 ++++++++++++++++++++++++++++----------
 fs/bind.c             |  35 ++++++++++++++++
 fs/exec.c             |   7 +++-
 fs/inode.c            |   9 ++--
 fs/internal.h         |   2 +
 fs/mount.h            |   2 +
 fs/namei.c            | 114 +++++++++++++++++++++++++++++++++++++++++---------
 fs/namespace.c        |   1 +
 fs/open.c             |  25 ++++++++++-
 fs/posix_acl.c        |   4 +-
 fs/proc_namespace.c   |   4 ++
 fs/stat.c             |  31 ++++++++++++--
 include/linux/cred.h  |  10 +++++
 include/linux/mount.h |   4 +-
 include/linux/sched.h |   5 +++
 kernel/capability.c   |  14 ++++++-
 kernel/cred.c         |  20 +++++++++
 kernel/groups.c       |   7 ++++
 18 files changed, 325 insertions(+), 56 deletions(-)

-- 
2.16.4


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

end of thread, other threads:[~2019-12-13 20:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-03  1:13 [PATCH 0/2] shiftfs reworked as a uid/gid shifting bind mount James Bottomley
2019-12-03  1:15 ` [PATCH 1/2] fs: introduce " James Bottomley
2019-12-03  4:51   ` Amir Goldstein
2019-12-03  5:12     ` James Bottomley
2019-12-03  6:55       ` Amir Goldstein
2019-12-03 14:10         ` James Bottomley
2019-12-03 14:33           ` Amir Goldstein
2019-12-03 14:58             ` James Bottomley
2019-12-03 14:40         ` James Bottomley
2019-12-13 17:49           ` James Bottomley
2019-12-03  1:15 ` [PATCH 2/2] fs: expose shifting bind mount to userspace James Bottomley

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