diff options
author | Andy Lutomirski <luto@amacapital.net> | 2014-06-10 23:45:42 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-11 00:57:22 +0400 |
commit | 23adbe12ef7d3d4195e80800ab36b37bee28cd03 (patch) | |
tree | 000f8f8b3172aa6629b7c9a4148a96549a07acb6 /kernel/cpu.c | |
parent | 5b174fd6472b1d6b6402b30210a212f3fd770d96 (diff) | |
download | linux-23adbe12ef7d3d4195e80800ab36b37bee28cd03.tar.xz |
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>
Diffstat (limited to 'kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions