]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
hfsplus: honor setgid flag on directories
authorErnesto A. Fernandez <ernesto.mnd.fernandez@gmail.com>
Tue, 6 Feb 2018 23:49:02 +0000 (15:49 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
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/20171204192705.GA6101@debian.home
Signed-off-by: Ernesto A. Fernandez <ernesto.mnd.fernandez@gmail.com>
Reviewed-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfsplus/dir.c
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/inode.c
fs/hfsplus/super.c