]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
groups: Consolidate the setgroups permission checks
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 5 Dec 2014 23:19:27 +0000 (17:19 -0600)
committerJiri Slaby <jslaby@suse.cz>
Wed, 7 Jan 2015 16:55:10 +0000 (17:55 +0100)
commit281cac74a213639fa7a4d1b60553d011a4a11d6f
tree0263df93413b1aae3646e3d2bb2df005c572b7bd
parente3783a9e6f416ee140ac4ca7184f269c537593f1
groups: Consolidate the setgroups permission checks

commit 7ff4d90b4c24a03666f296c3d4878cd39001e81e upstream.

Today there are 3 instances of setgroups and due to an oversight their
permission checking has diverged.  Add a common function so that
they may all share the same permission checking code.

This corrects the current oversight in the current permission checks
and adds a helper to avoid this in the future.

A user namespace security fix will update this new helper, shortly.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/s390/kernel/compat_linux.c
include/linux/cred.h
kernel/groups.c
kernel/uid16.c