diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-12-06 00:14:19 (GMT) |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2014-12-09 23:08:24 (GMT) |
commit | be7c6dba2332cef0677fbabb606e279ae76652c3 (patch) | |
tree | 52d7a02dc25a3c2ac64576a9288114d0741cc846 /drivers/virt | |
parent | 273d2c67c3e179adb1e74f403d1e9a06e3f841b5 (diff) | |
download | linux-be7c6dba2332cef0677fbabb606e279ae76652c3.tar.xz |
userns: Don't allow unprivileged creation of gid mappings
As any gid mapping will allow and must allow for backwards
compatibility dropping groups don't allow any gid mappings to be
established without CAP_SETGID in the parent user namespace.
For a small class of applications this change breaks userspace
and removes useful functionality. This small class of applications
includes tools/testing/selftests/mount/unprivilged-remount-test.c
Most of the removed functionality will be added back with the addition
of a one way knob to disable setgroups. Once setgroups is disabled
setting the gid_map becomes as safe as setting the uid_map.
For more common applications that set the uid_map and the gid_map
with privilege this change will have no affect.
This is part of a fix for CVE-2014-8989.
Cc: stable@vger.kernel.org
Reviewed-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'drivers/virt')
0 files changed, 0 insertions, 0 deletions