From: Eric W. Biederman Date: Fri, 5 Dec 2014 23:19:27 +0000 (-0600) Subject: groups: Consolidate the setgroups permission checks X-Git-Tag: omap-for-v3.19/fixes-rc1~48^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ff4d90b4c24a03666f296c3d4878cd39001e81e;p=pandora-kernel.git groups: Consolidate the setgroups permission checks 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. Cc: stable@vger.kernel.org Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed