Files
kernel_amazon_mt8127-common/include/linux
Eric W. Biederman fc9b65e3d7 userns: Don't allow setgroups until a gid mapping has been setablished
commit 273d2c67c3e179adb1e74f403d1e9a06e3f841b5 upstream.

setgroups is unique in not needing a valid mapping before it can be called,
in the case of setgroups(0, NULL) which drops all supplemental groups.

The design of the user namespace assumes that CAP_SETGID can not actually
be used until a gid mapping is established.  Therefore add a helper function
to see if the user namespace gid mapping has been established and call
that function in the setgroups permission check.

This is part of the fix for CVE-2014-8989, being able to drop groups
without privilege using user namespaces.

Reviewed-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-08 09:58:16 -08:00
..
2013-12-04 10:56:22 -08:00
2013-12-08 07:29:27 -08:00
2014-10-30 09:35:12 -07:00
2014-11-14 08:47:55 -08:00
2013-07-28 16:30:11 -07:00
2013-10-13 16:08:28 -07:00
2014-04-03 12:01:05 -07:00
2014-06-26 15:12:38 -04:00
2013-07-28 16:30:05 -07:00
2013-10-13 16:08:35 -07:00
2013-07-21 18:21:29 -07:00
2014-01-15 15:28:47 -08:00
2014-02-13 13:47:59 -08:00
2013-08-20 08:43:02 -07:00
2013-07-28 16:29:55 -07:00