android_kernel_samsung_msm8976/fs/gfs2
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
..
acl.c posix_acl: Clear SGID bit when setting file permissions 2019-07-27 21:42:52 +02:00
acl.h
aops.c GFS2: Fix incorrect invalidation for DIO/buffered I/O 2014-01-09 12:24:24 -08:00
bmap.c
bmap.h
dentry.c
dir.c
dir.h
export.c constify ->actor 2015-09-16 18:20:09 +05:30
file.c
gfs2.h
glock.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
glock.h
glops.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
glops.h
incore.h
inode.c GFS2: Increase i_writecount during gfs2_setattr_chown 2014-01-25 08:27:11 -08:00
inode.h
Kconfig
lock_dlm.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
log.c
log.h
lops.c
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c GFS2: don't hold s_umount over blkdev_put 2014-01-09 12:24:24 -08:00
quota.c
quota.h
recovery.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
recovery.h
rgrp.c
rgrp.h
super.c fs: push sync_filesystem() down to the file system's remount_fs() 2015-09-16 18:20:11 +05:30
super.h
sys.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
sys.h
trace_gfs2.h
trans.c
trans.h
util.c
util.h
xattr.c
xattr.h