diff options
author | Jan Kara <jack@suse.cz> | 2017-06-21 12:34:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-27 22:08:02 (GMT) |
commit | 4d1f97eb59a472a11982d6fff9a722b681225e1a (patch) | |
tree | c6fe80e19c4c4e4b61cecbc28024d359f44215e1 /Documentation/power/00-INDEX | |
parent | 0fa705dc61ee12e09827ac19225be3731b1cb988 (diff) | |
download | linux-4d1f97eb59a472a11982d6fff9a722b681225e1a.tar.xz |
ext2: Don't clear SGID when inheriting ACLs
commit a992f2d38e4ce17b8c7d1f7f67b2de0eebdea069 upstream.
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.
Fix the problem by creating __ext2_set_acl() function that does not call
posix_acl_update_mode() and use it when inheriting ACLs. That prevents
SGID bit clearing and the mode has been properly set by
posix_acl_create() anyway.
Fixes: 073931017b49d9458aa351605b43a7e34598caef
CC: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/power/00-INDEX')
0 files changed, 0 insertions, 0 deletions