]> git.baikalelectronics.ru Git - kernel.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)
commitecf9a609f08e8f44699f9cc1d6e8fc9874121854
tree590524511319243c72325593651f2b1ef8823e32
parenta88dc2c2496a3ca092c73425656a83d1f76e660a
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