Files
kernel_amazon_mt8127-common/fs
Jan Kara 9b9724dc86 fs: Fix S_NOSEC handling
commit 2426f3910069ed47c0cc58559a6d088af7920201 upstream.

file_remove_suid() could mistakenly set S_NOSEC inode bit when root was
modifying the file. As a result following writes to the file by ordinary
user would avoid clearing suid or sgid bits.

Fix the bug by checking actual mode bits before setting S_NOSEC.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-07-10 10:40:22 -07:00
..
2013-05-07 20:16:25 -07:00
2013-05-07 20:16:25 -07:00
2015-03-26 15:00:57 +01:00
2013-05-24 16:22:51 -07:00
2013-07-13 11:42:26 -07:00
2015-04-29 10:33:57 +02:00
2013-05-07 20:16:25 -07:00
2013-10-05 07:13:09 -07:00
2013-05-07 20:16:25 -07:00
2015-07-03 19:48:09 -07:00
2015-07-03 19:48:08 -07:00
2015-07-10 10:40:22 -07:00
2015-07-03 19:48:08 -07:00
2015-07-03 19:48:08 -07:00
2013-05-31 15:16:33 -04:00
2015-07-03 19:48:08 -07:00