kernel_optimize_test/fs/hfsplus
Jan Kara 073931017b posix_acl: Clear SGID bit when setting file permissions
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.

References: CVE-2016-7097
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2016-09-22 10:55:32 +02:00
..
acl.h
attributes.c
bfind.c
bitmap.c
bnode.c
brec.c
btree.c
catalog.c qstr: constify instances in hfsplus 2016-07-20 23:30:06 -04:00
dir.c
extents.c
hfsplus_fs.h Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-08-07 10:01:14 -04:00
hfsplus_raw.h
inode.c
ioctl.c
Kconfig
Makefile
options.c
part_tbl.c hfsplus: use bio op accessors 2016-06-07 13:41:38 -06:00
posix_acl.c posix_acl: Clear SGID bit when setting file permissions 2016-09-22 10:55:32 +02:00
super.c hfsplus: use bio op accessors 2016-06-07 13:41:38 -06:00
tables.c
unicode.c get rid of 'parent' argument of ->d_compare() 2016-07-31 16:37:25 -04:00
wrapper.c hfsplus: use bio op accessors 2016-06-07 13:41:38 -06:00
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h