Files
android_kernel_xiaomi_sm8450/include/linux
Andy Lutomirski 23adbe12ef fs,userns: Change inode_capable to capable_wrt_inode_uidgid
The kernel has no concept of capabilities with respect to inodes; inodes
exist independently of namespaces.  For example, inode_capable(inode,
CAP_LINUX_IMMUTABLE) would be nonsense.

This patch changes inode_capable to check for uid and gid mappings and
renames it to capable_wrt_inode_uidgid, which should make it more
obvious what it does.

Fixes CVE-2014-4014.

Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Serge Hallyn <serge.hallyn@ubuntu.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: stable@vger.kernel.org
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-10 13:57:22 -07:00
..
2014-05-06 17:54:53 -04:00
2014-04-18 16:40:08 -07:00
2013-12-23 18:34:58 -08:00
2014-01-24 22:39:54 +01:00
2014-06-03 23:12:20 +02:00
2013-11-15 09:32:21 +09:00
2013-11-09 00:16:29 -05:00
2014-02-13 10:08:52 +05:30
2014-01-16 10:23:02 +10:30
2014-06-04 13:34:30 +09:00
2014-04-01 23:19:14 -04:00
2014-03-10 11:44:42 -04:00
2014-04-18 14:20:48 +02:00
2014-05-20 10:30:40 +09:00
2014-02-20 14:54:28 +01:00
2014-03-04 07:55:47 -08:00
2014-01-16 11:15:50 +01:00
2014-06-06 16:08:13 -07:00
2014-06-02 14:56:01 -07:00
2013-12-29 16:34:25 -05:00
2014-03-07 11:41:32 -05:00
2014-04-17 12:30:40 -07:00
2014-05-16 14:05:22 +02:00
2014-03-13 12:11:00 +10:30
2014-01-25 08:55:09 +01:00
2013-12-11 15:52:34 +01:00
2014-05-27 17:38:11 -07:00
2013-12-26 13:29:35 -05:00
2014-04-01 23:19:08 -04:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
2013-11-09 00:16:19 -05:00
2014-04-01 23:19:10 -04:00
2014-03-17 15:14:16 -04:00
2014-03-17 15:15:21 -04:00
2014-01-25 03:14:05 -05:00
2014-04-07 10:59:19 -07:00
2014-04-24 15:01:33 -06:00
2014-06-04 16:54:07 -07:00
2014-06-04 16:54:21 -07:00
2014-03-19 22:24:08 -04:00
2014-02-17 15:01:52 -08:00
2014-06-04 16:54:12 -07:00
2014-01-28 13:20:09 -08:00
2014-05-20 15:19:25 -05:00
2013-12-19 19:09:38 -05:00
2014-06-06 16:08:12 -07:00
2014-02-15 11:55:28 -08:00
2014-02-17 15:01:37 -08:00
2014-06-04 16:53:57 -07:00
2014-06-04 16:53:56 -07:00
2014-05-14 09:46:32 -07:00
2014-05-30 11:35:54 -06:00
2014-06-04 16:53:57 -07:00
2014-04-07 16:35:53 -07:00
2014-06-04 16:53:57 -07:00
2014-01-30 16:56:55 -08:00