linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: linux-fsdevel@vger.kernel.org
Cc: dhowells@redhat.com, Al Viro <viro@ZenIV.linux.org.uk>,
	Miklos Szeredi <miklos@szeredi.hu>,
	Seth Forshee <seth.forshee@canonical.com>,
	Amir Goldstein <amir73il@gmail.com>
Subject: [PATCH 0/2] shiftfs reworked as a uid/gid shifting bind mount
Date: Mon, 02 Dec 2019 17:13:57 -0800	[thread overview]
Message-ID: <1575335637.24227.26.camel@HansenPartnership.com> (raw)

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


             reply	other threads:[~2019-12-03  1:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-03  1:13 James Bottomley [this message]
2019-12-03  1:15 ` [PATCH 1/2] fs: introduce uid/gid shifting bind mount 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1575335637.24227.26.camel@HansenPartnership.com \
    --to=james.bottomley@hansenpartnership.com \
    --cc=amir73il@gmail.com \
    --cc=dhowells@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=seth.forshee@canonical.com \
    --cc=viro@ZenIV.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).