Skip to content

Fix inheritance of SGID in presence of default ACLs

Jan Kara cluster-devel linux-btrfs linux-ext4 linux-fsdevel linux-xfs ocfs2-devel reiserfs-devel stable 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11ext4: Don't clear SGID when inheriting ACLsfs/ext4/acl.c+9 -73 replies
2/11ext2: Don't clear SGID when inheriting ACLsfs/ext2/acl.c+22 -140 replies
3/11btrfs: Don't clear SGID when inheriting ACLsfs/btrfs/acl.c+7 -61 reply
4/11gfs2: Don't clear SGID when inheriting ACLsfs/gfs2/acl.c+14 -132 replies
5/11hfsplus: Don't clear SGID when inheriting ACLsfs/hfsplus/posix_acl.c+18 -120 replies
6/11jfs: Don't clear SGID when inheriting ACLsfs/jfs/acl.c+8 -72 replies
7/11ocfs2: Make ocfs2_set_acl() staticfs/ocfs2/acl.c fs/ocfs2/acl.h+1 -80 replies
8/11ocfs2: Don't clear SGID when inheriting ACLsfs/ocfs2/acl.c+12 -120 replies
9/11orangefs: Don't clear SGID when inheriting ACLsfs/orangefs/acl.c+28 -203 replies
10/11reiserfs: Don't clear SGID when inheriting ACLsfs/reiserfs/xattr_acl.c+7 -50 replies
11/11xfs: Don't clear SGID when inheriting ACLsfs/xfs/xfs_acl.c fs/xfs/xfs_acl.h fs/xfs/xfs_iops.c+6 -51 reply

Reviews trailers per patch

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

PatchAndreas GruenbacherDarrick J. Wong
1/11R-b
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11R-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 0/11 v1] Fix inheritance of SGID in presence of default ACLs

Hello,

this patch set fixes a problem introduced by commit 073931017b49 "posix_acl:
Clear SGID bit when setting file permissions". The problem is that when new directory 'DIR1' is created in a directory 'DIR0' with SGID bit set, DIR1 is expected to have SGID bit set (and owning group equal to the owning group of 'DIR0'). However when 'DIR0' also has some default ACLs that 'DIR1' inherits, setting these ACLs will result in SGID bit on 'DIR1' to get cleared if user is not member of the owning group.

The problem is fixed by moving posix_acl_update_mode() so that it does not get called when default ACLs are inherited.

I have created new generic/441 test for this and verified that generic/314, generic/375, and generic/441 pass for ext2, ext4, btrfs, xfs, ocfs2, reiserfs.

All patches in this series are completely independent so fs maintainers please pick them up as soon as they get reviewed. I'm leaving for three weeks of vacation at the end of the week so I won't be able to push this further for some time.

Honza