android_kernel_samsung_msm8976/fs/ext3
Jan Kara bdc15f09d9 posix_acl: Clear SGID bit when setting file permissions
commit 073931017b49d9458aa351605b43a7e34598caef upstream.

When file permissions are modified via chmod(2) and the user is not in
the owning group or capable of CAP_FSETID, the setgid bit is cleared in
inode_change_ok().  Setting a POSIX ACL via setxattr(2) sets the file
permissions as well as the new ACL, but doesn't clear the setgid bit in
a similar way; this allows to bypass the check in chmod(2).  Fix that.

Change-Id: Ibd68b4b3a43a463b55032442a879219001008f46
2019-07-27 21:42:52 +02:00
..
Kconfig
Makefile
acl.c posix_acl: Clear SGID bit when setting file permissions 2019-07-27 21:42:52 +02:00
acl.h
balloc.c
bitmap.c
dir.c
ext3.h
ext3_jbd.c
file.c
fsync.c
hash.c
ialloc.c
inode.c
ioctl.c
namei.c ext[34]: fix double put in tmpfile 2018-12-03 11:52:41 +01:00
namei.h
resize.c
super.c fs: push sync_filesystem() down to the file system's remount_fs() 2015-09-16 18:20:11 +05:30
symlink.c
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c