Files
linux/fs
Andy Lutomirski 2246a472bc fs,userns: Change inode_capable to capable_wrt_inode_uidgid
commit 23adbe12ef upstream.

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>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2014-06-20 17:34:15 +02:00
..
2014-06-09 15:53:27 +02:00
2013-06-29 12:56:55 +04:00
2013-07-05 18:59:33 +04:00
2013-06-29 12:56:46 +04:00
2013-10-15 12:14:06 -04:00
2013-06-29 12:56:53 +04:00
2014-02-13 13:50:10 -08:00
2013-09-07 10:38:29 +02:00
2014-02-06 11:22:21 -08:00
2014-02-13 13:50:13 -08:00
2013-06-29 12:56:32 +04:00
2014-04-03 10:32:30 +02:00
2013-06-29 12:56:38 +04:00
2013-06-29 12:56:39 +04:00
2014-05-15 09:55:20 +02:00
2013-06-29 12:56:29 +04:00
2013-09-24 11:23:33 +02:00
2013-06-29 12:57:04 +04:00
2013-07-10 18:11:34 -07:00
2013-04-29 15:40:23 -04:00
2013-09-24 14:41:42 -07:00
2013-06-29 12:57:05 +04:00
2014-06-06 11:40:21 +02:00
2014-05-05 11:20:53 +02:00
2013-09-10 18:56:31 -04:00
2013-02-22 23:31:31 -05:00
2013-04-17 13:25:09 +01:00
2013-12-08 07:29:16 -08:00
2013-05-31 15:16:33 -04:00
2013-06-29 12:57:05 +04:00
2014-02-13 13:50:10 -08:00
2013-12-20 07:49:06 -08:00
2014-05-29 11:38:24 +02:00
2013-05-29 12:57:34 -07:00