hfsplus: honor setgid flag on directories
authorErnesto A. Fernandez <[email protected]>
Tue, 6 Feb 2018 23:49:02 +0000 (15:49 -0800)
committerLinus Torvalds <[email protected]>
Wed, 7 Feb 2018 02:32:45 +0000 (18:32 -0800)
commitb0cd38c7f54c9176f78cce2e2b23e1513bf5a224
tree590524511319243c72325593651f2b1ef8823e32
parentfb04b91bc2c3a83e9e2ba9c5ce0f0124dd3ffef0
hfsplus: honor setgid flag on directories

When creating a file inside a directory that has the setgid flag set, give
the new file the group ID of the parent, and also the setgid flag if it is
a directory itself.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ernesto A. Fernandez <[email protected]>
Reviewed-by: Vyacheslav Dubeyko <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/hfsplus/dir.c
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/inode.c
fs/hfsplus/super.c