All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/11 v1] Fix inheritance of SGID in presence of default ACLs
@ 2017-06-22 13:31 ` Jan Kara
  0 siblings, 0 replies; 36+ messages in thread
From: Jan Kara @ 2017-06-22 13:31 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: Andreas Gruenbacher, Jan Kara, Darrick J . Wong, linux-xfs,
	reiserfs-devel, Mike Marshall, pvfs2-developers, Joel Becker,
	ocfs2-devel, Dave Kleikamp, jfs-discussion, cluster-devel,
	Bob Peterson, linux-btrfs, David Sterba, linux-ext4,
	Theodore Ts'o

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

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2017-07-31  3:34 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22 13:31 [PATCH 0/11 v1] Fix inheritance of SGID in presence of default ACLs Jan Kara
2017-06-22 13:31 ` Jan Kara
2017-06-22 13:31 ` [Cluster-devel] " Jan Kara
2017-06-22 13:31 ` [Ocfs2-devel] " Jan Kara
2017-06-22 13:31 ` Jan Kara
2017-06-22 13:31 ` Jan Kara
2017-06-22 13:31 ` [PATCH 01/11] ext4: Don't clear SGID when inheriting ACLs Jan Kara
2017-06-22 15:32   ` Andreas Gruenbacher
2017-07-18 16:16   ` Jan Kara
2017-07-31  3:34     ` Theodore Ts'o
2017-06-22 13:31 ` [PATCH 02/11] ext2: " Jan Kara
2017-06-22 13:31 ` [PATCH 03/11] btrfs: " Jan Kara
2017-06-26 16:47   ` David Sterba
2017-06-22 13:31 ` [PATCH 04/11] gfs2: " Jan Kara
2017-06-22 13:31   ` [Cluster-devel] " Jan Kara
2017-07-18 16:18   ` Jan Kara
2017-07-18 16:18     ` [Cluster-devel] " Jan Kara
2017-07-19 16:17     ` Bob Peterson
2017-07-19 16:17       ` [Cluster-devel] " Bob Peterson
2017-06-22 13:31 ` [PATCH 05/11] hfsplus: " Jan Kara
2017-06-22 13:31 ` [PATCH 06/11] jfs: " Jan Kara
2017-07-18 16:19   ` Jan Kara
2017-07-18 17:36     ` Dave Kleikamp
2017-06-22 13:31 ` [PATCH 07/11] ocfs2: Make ocfs2_set_acl() static Jan Kara
2017-06-22 13:31   ` [Ocfs2-devel] " Jan Kara
2017-06-22 13:31 ` [PATCH 08/11] ocfs2: Don't clear SGID when inheriting ACLs Jan Kara
2017-06-22 13:31   ` [Ocfs2-devel] " Jan Kara
2017-06-22 13:31 ` [PATCH 09/11] orangefs: " Jan Kara
2017-07-18 16:18   ` Jan Kara
2017-07-20 16:05     ` Mike Marshall
2017-07-20 16:27       ` Jan Kara
2017-06-22 13:31 ` [PATCH 10/11] reiserfs: " Jan Kara
2017-06-22 13:31   ` Jan Kara
2017-06-22 13:31 ` [PATCH 11/11] xfs: " Jan Kara
2017-06-22 13:31   ` Jan Kara
2017-06-26 15:52   ` Darrick J. Wong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.