diff options
| author | Andy Lutomirski <[email protected]> | 2014-06-10 19:45:42 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-06-10 20:57:22 +0000 |
| commit | 23adbe12ef7d3d4195e80800ab36b37bee28cd03 (patch) | |
| tree | 000f8f8b3172aa6629b7c9a4148a96549a07acb6 /fs/nfs/filelayout/filelayoutdev.c | |
| parent | Merge branch 'for-3.16' of git://linux-nfs.org/~bfields/linux (diff) | |
| download | kernel-23adbe12ef7d3d4195e80800ab36b37bee28cd03.tar.gz kernel-23adbe12ef7d3d4195e80800ab36b37bee28cd03.zip | |
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 <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: [email protected]
Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/nfs/filelayout/filelayoutdev.c')
0 files changed, 0 insertions, 0 deletions
