Skip to content

attr: group fix backport

Christian Brauner regressions stable 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12fs: add is_idmapped_mnt() helperfs/cachefiles/bind.c fs/ecryptfs/main.c fs/namespace.c +4 more+20 -60 replies
2/12fs: move mapping helpersfs/ksmbd/smbacl.c fs/ksmbd/smbacl.h fs/open.c +5 more+108 -900 replies
3/12fs: tweak fsuidgid_has_mapping()include/linux/fs.h+11 -30 replies
4/12fs: account for filesystem mappingsinclude/linux/fs.h include/linux/mnt_idmapping.h+191 -60 replies
5/12docs: update mapping documentationDocumentation/filesystems/idmappings.rst+0 -720 replies
6/12fs: use low-level mapping helpersfs/ksmbd/smbacl.c fs/ksmbd/smbacl.h fs/open.c +2 more+24 -310 replies
7/12fs: remove unused low-level mapping helpersinclude/linux/mnt_idmapping.h+0 -560 replies
8/12fs: port higher-level mapping helpersfs/xfs/xfs_inode.c fs/xfs/xfs_symlink.c include/linux/fs.h +1 more+18 -140 replies
9/12fs: add i_user_ns() helperinclude/linux/fs.h+9 -40 replies
10/12fs: support mapped mounts of mapped filesystemsfs/namespace.c fs/open.c fs/posix_acl.c +2 more+59 -330 replies
11/12fs: fix acl translationfs/posix_acl.c fs/xattr.c include/linux/posix_acl_xattr.h+18 -21 reply
12/12fs: account for group membershipfs/attr.c+20 -60 replies

Reviews trailers per patch

11 of 12 patches have a Reviewed-by or Acked-by.

PatchAmir GoldsteinSeth Forshee
1/12R-b R-b
2/12R-b R-b
3/12R-b R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b R-b
8/12R-b R-b
9/12R-b R-b
10/12R-b
11/12
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] attr: group fix backport

From: "Christian Brauner (Microsoft)" <[email protected]>

Hey Greg,

As promised, here is a series that allows to backport the fix which failed to build for you. This backports a few patches that are required to make this work. I decided to backport them instead of rolling a custom fix for this. That would've been smaller but there is future hardening work that I would like to backport and this enables this.

I've run xfstests for ext4, xfs, and btrfs as well as LTP with:
runltp -f fs_perms_simple,fs_bind,containers,cap_bounds,cve,uevent,filecaps and I see no regressions. There is an xfs failure but that is related to a - for obvious reasons - missing stable backport.

Thanks!
Christian

Christian Brauner (12):
fs: add is_idmapped_mnt() helper
fs: move mapping helpers
fs: tweak fsuidgid_has_mapping()
fs: account for filesystem mappings
docs: update mapping documentation
fs: use low-level mapping helpers
fs: remove unused low-level mapping helpers
fs: port higher-level mapping helpers
fs: add i_user_ns() helper
fs: support mapped mounts of mapped filesystems
fs: fix acl translation
fs: account for group membership

 Documentation/filesystems/idmappings.rst |  72 -------
 fs/attr.c                                |  26 ++-
 fs/cachefiles/bind.c                     |   2 +-
 fs/ecryptfs/main.c                       |   2 +-
 fs/ksmbd/smbacl.c                        |  19 +-
 fs/ksmbd/smbacl.h                        |   5 +-
 fs/namespace.c                           |  53 +++--
 fs/nfsd/export.c                         |   2 +-
 fs/open.c                                |   8 +-
 fs/overlayfs/super.c                     |   2 +-
 fs/posix_acl.c                           |  27 ++-
 fs/proc_namespace.c                      |   2 +-
 fs/xattr.c                               |   6 +-
 fs/xfs/xfs_inode.c                       |   8 +-
 fs/xfs/xfs_linux.h                       |   1 +
 fs/xfs/xfs_symlink.c                     |   4 +-
 include/linux/fs.h                       | 141 ++++----------
 include/linux/mnt_idmapping.h            | 234 +++++++++++++++++++++++
 include/linux/posix_acl_xattr.h          |   4 +
 security/commoncap.c                     |  15 +-
 20 files changed, 394 insertions(+), 239 deletions(-)
 create mode 100644 include/linux/mnt_idmapping.h

base-commit: 18a33c8dabb88b50b860e0177a73933f2c0ddf68

Signature · 1 line
2.34.1