android_kernel_samsung_msm8976/fs/ocfs2
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
..
cluster ocfs2: convert to idr_alloc() 2013-02-27 19:10:19 -08:00
dlm ocfs2/dlm: fix BUG in dlm_move_lockres_to_recovery_list 2016-06-07 10:42:48 +02:00
dlmfs fs: Limit sys_mount to only request filesystem modules. 2013-03-03 19:36:31 -08:00
Kconfig
Makefile
acl.c posix_acl: Clear SGID bit when setting file permissions 2019-07-27 21:42:52 +02:00
acl.h
alloc.c ocfs2: remove kfree() redundant null checks 2013-02-21 17:22:19 -08:00
alloc.h
aops.c ocfs2: fix journal commit deadlock 2015-01-16 06:59:00 -08:00
aops.h aio: don't include aio.h in sched.h 2013-05-07 20:16:25 -07:00
blockcheck.c ocfs2: kill endianness abuses in blockcheck.c 2012-05-29 23:28:35 -04:00
blockcheck.h
buffer_head_io.c ocfs2: do not put bh when buffer_uptodate failed 2014-05-06 07:55:32 -07:00
buffer_head_io.h
dcache.c move d_rcu from overlapping d_child to overlapping d_alias 2015-04-29 10:34:00 +02:00
dcache.h
dir.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-02-26 20:16:07 -08:00
dir.h
dlmglue.c ocfs2: fix BUG in ocfs2_downconvert_thread_do_work() 2015-08-16 20:51:40 -07:00
dlmglue.h
export.c fs: encode_fh: return FILEID_INVALID if invalid fid_type 2013-02-26 02:46:10 -05:00
export.h
extent_map.c ocfs2: fix the end cluster offset of FIEMAP 2013-09-26 17:18:28 -07:00
extent_map.h
file.c splice: Apply generic position and size checks to each write 2015-04-29 10:33:57 +02:00
file.h
heartbeat.c
heartbeat.h
inode.c ocfs2: Convert uid and gids between in core and on disk inodes 2013-02-13 06:00:58 -08:00
inode.h aio: don't include aio.h in sched.h 2013-05-07 20:16:25 -07:00
ioctl.c ocfs2: fix error return code in ocfs2_info_handle_freefrag() 2013-04-29 15:54:27 -07:00
ioctl.h
journal.c ocfs2: remove kfree() redundant null checks 2013-02-21 17:22:19 -08:00
journal.h
localalloc.c ocfs2: remove kfree() redundant null checks 2013-02-21 17:22:19 -08:00
localalloc.h
locks.c
locks.h
mmap.c kill f_vfsmnt 2013-02-26 02:46:10 -05:00
mmap.h
move_extents.c ocfs2: fix NULL dereference for moving extents 2013-04-29 15:54:27 -07:00
move_extents.h
namei.c fs/ocfs2/namei.c: remove unecessary ERROR when removing non-empty directory 2013-06-12 16:29:45 -07:00
namei.h
ocfs1_fs_compat.h
ocfs2.h
ocfs2_fs.h
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
ocfs2_trace.h
quota.h
quota_global.c ocfs2: fix quota file corruption 2014-03-23 21:38:09 -07:00
quota_local.c ocfs2: fix quota file corruption 2014-03-23 21:38:09 -07:00
refcounttree.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-02-26 20:16:07 -08:00
refcounttree.h
reservations.c
reservations.h
resize.c
resize.h
slot_map.c
slot_map.h
stack_o2cb.c ocfs2: remove kfree() redundant null checks 2013-02-21 17:22:19 -08:00
stack_user.c dlm: add recovery callbacks 2012-01-04 08:56:31 -06:00
stackglue.c
stackglue.h
suballoc.c ocfs2: ac->ac_allow_chain_relink=0 won't disable group relink 2013-02-27 19:10:09 -08:00
suballoc.h ocfs2: ac->ac_allow_chain_relink=0 won't disable group relink 2013-02-27 19:10:09 -08: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
symlink.c ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path 2013-02-26 02:46:12 -05:00
symlink.h ocfs: simplify symlink handling 2012-05-29 23:28:40 -04:00
sysfile.c ocfs2: remove kfree() redundant null checks 2013-02-21 17:22:19 -08:00
sysfile.h
uptodate.c
uptodate.h
ver.c
ver.h
xattr.c ocfs2: xattr: fix inlined xattr reflink 2013-07-21 18:21:29 -07:00
xattr.h ocfs2: propagate umode_t 2012-01-03 22:55:02 -05:00