lkml.org 
[lkml]   [2018]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject[PATCH v8 0/6] fuse: mounts from non-init user namespaces

This patchset builds on the work by Donsu Park and Seth Forshee and is
reduced to the set of patches that just affect fuse. The non-fuse
vfs patches are far enough along we can ignore them except possibly for the
question of when does FS_USERNS_MOUNT get set in fuse_fs_type.

Fuse with a block device has been left as an exercise for a later time.

Since v5 I changed the core of this patchset around as the previous
patches were showing signs of bitrot. Some important explanations were
missing, some important functionality was missing, and xattr handling
was completely absent.

Since v6 I have:
- Removed the failure case from fuse_get_req_nofail_nopages that I
added.
- Updated fuse to always to use posix_acl_access_xattr_handler, and
posix_acl_default_xattr_handler, by teaching fuse to set
ACL_DONT_CACHE when FUSE_POSIX_ACL is not set.

Since v7 I have:
- Rethought and reworked how I am unifying the cached and the non-cached
posix acl case so the code is cleaner and simpler.
- I have dropped enhancements to caching negative acls when
fc->no_getxattr is set.
- Removed the need to wrap forget_all_cached_acls in fuse.
- Reorder the patches so the posix acl work comes first

Miklos can you take a look and see what you think?

I think this much of the fuse changes are ready, and as such I would
like to get them in this development cycle if possible.

These changes are also available at:

git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git userns-fuse-v8

Eric W. Biederman (5):
fs/posix_acl: Update the comments and support lightweight cache skipping
fuse: Simplfiy the posix acl handling logic.
fuse: Remove the buggy retranslation of pids in fuse_dev_do_read
fuse: Fail all requests with invalid uids or gids
fuse: Support fuse filesystems outside of init_user_ns

Seth Forshee (1):
fuse: Restrict allow_other to the superblock's namespace or a descendant


fs/fuse/acl.c | 10 ++++++----
fs/fuse/cuse.c | 7 ++++++-
fs/fuse/dev.c | 30 ++++++++++++++++------------
fs/fuse/dir.c | 18 ++++++++---------
fs/fuse/fuse_i.h | 9 ++++++---
fs/fuse/inode.c | 34 +++++++++++++++++++-------------
fs/fuse/xattr.c | 5 -----
fs/posix_acl.c | 50 ++++++++++++++++++++++++++++++++---------------
include/linux/posix_acl.h | 17 ++++++++++++++++
kernel/user_namespace.c | 1 +
10 files changed, 116 insertions(+), 65 deletions(-)

\
 
 \ /
  Last update: 2018-03-02 22:59    [W:0.379 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site