[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210319195547.427371-1-vgoyal@redhat.com>
Date: Fri, 19 Mar 2021 15:55:44 -0400
From: Vivek Goyal <vgoyal@...hat.com>
To: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
virtio-fs@...hat.com, miklos@...redi.hu
Cc: vgoyal@...hat.com, lhenriques@...e.de, dgilbert@...hat.com,
seth.forshee@...onical.com
Subject: [PATCH 0/3] fuse: Fix clearing SGID when access ACL is set
Hi,
Luis reported that xfstests generic/375 fails with virtiofs. Little
debugging showed that when posix access acl is set that in some
cases SGID needs to be cleared and that does not happen with virtiofs.
Setting posix access acl can lead to mode change and it can also lead
to clear of SGID. fuse relies on file server taking care of all
the mode changes. But file server does not have enough information to
determine whether SGID should be cleared or not.
Hence this patch series add support to send a flag in SETXATTR message
to tell server to clear SGID.
I have staged corresponding virtiofsd patches here.
https://github.com/rhvgoyal/qemu/commits/acl-sgid-setxattr-flag
With these patches applied "./check -g acl" passes now on virtiofs.
Vivek Goyal (3):
posic_acl: Add a helper determine if SGID should be cleared
fuse: Add support for FUSE_SETXATTR_V2
fuse: Add a flag FUSE_SETXATTR_ACL_KILL_SGID to kill SGID
fs/fuse/acl.c | 7 ++++++-
fs/fuse/fuse_i.h | 5 ++++-
fs/fuse/inode.c | 4 +++-
fs/fuse/xattr.c | 21 +++++++++++++++------
fs/posix_acl.c | 3 +--
include/linux/posix_acl.h | 11 +++++++++++
include/uapi/linux/fuse.h | 17 +++++++++++++++++
7 files changed, 57 insertions(+), 11 deletions(-)
--
2.25.4
Powered by blists - more mailing lists