Files
linux/fs
Jan Kara 9b9724dc86 fs: Fix S_NOSEC handling
commit 2426f39100 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
2013-03-12 18:55:21 -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
2013-04-29 15:41:42 -04:00
2015-04-29 10:33:57 +02:00
2013-03-23 14:15:31 -07:00
2013-05-07 20:16:25 -07:00
2013-04-29 15:40:23 -04:00
2013-10-05 07:13:09 -07:00
2012-10-22 08:50:37 +03:00
2013-05-07 20:16:25 -07:00
2015-07-03 19:48:09 -07:00
2013-02-22 23:31:31 -05: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
2013-02-22 23:31:31 -05:00
2013-04-17 13:25:09 +01:00
2015-07-03 19:48:08 -07:00
2013-05-31 15:16:33 -04:00
2013-02-22 23:31:31 -05:00
2015-07-03 19:48:08 -07:00