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
..
Kconfig GFS2: fix DLM depends to fix build errors 2013-05-24 13:47:53 +01:00
Makefile
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 GFS2: Increase i_writecount during gfs2_setattr_size 2013-06-03 16:38:58 +01:00
bmap.h
dentry.c
dir.c GFS2: Fall back to vmalloc if kmalloc fails for dir hash tables 2013-06-03 16:39:44 +01:00
dir.h
export.c constify ->actor 2015-09-16 18:20:09 +05:30
file.c GFS2: Increase i_writecount during gfs2_setattr_size 2013-06-03 16:38:58 +01:00
gfs2.h
glock.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
glock.h GFS2: Remove gfs2_refresh_inode from inode creation path 2013-04-08 08:40:17 +01:00
glops.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
glops.h
incore.h GFS2: Add origin indicator to glock callbacks 2013-04-10 10:26:55 +01:00
inode.c GFS2: Increase i_writecount during gfs2_setattr_chown 2014-01-25 08:27:11 -08:00
inode.h
lock_dlm.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
log.c GFS2: replace gfs2_ail structure with gfs2_trans 2013-04-08 08:46:22 +01:00
log.h
lops.c GFS2: Set log descriptor type for jdata blocks 2013-06-03 16:38:39 +01:00
lops.h GFS2: replace gfs2_ail structure with gfs2_trans 2013-04-08 08:46:22 +01:00
main.c
meta_io.c GFS2: replace gfs2_ail structure with gfs2_trans 2013-04-08 08:46:22 +01:00
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 GFS2: two minor quota fixups 2013-05-24 13:47:13 +01:00
quota.h
recovery.c arch: Mass conversion of smp_mb__*() 2014-08-15 11:45:28 -07:00
recovery.h
rgrp.c GFS2: Increase i_writecount during gfs2_setattr_size 2013-06-03 16:38:58 +01:00
rgrp.h GFS2: Remove vestigial parameter ip from function rs_deltree 2013-04-08 08:41:04 +01:00
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 GFS2: Add origin indicator to glock demote tracing 2013-04-10 10:32:05 +01:00
trans.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw 2013-04-30 11:27:14 -07:00
trans.h
util.c
util.h
xattr.c
xattr.h