net: Update the sysctl permissions handler to test effective uid/gid
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 5 Oct 2013 20:15:30 +0000 (13:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 6 Oct 2013 20:50:14 +0000 (13:50 -0700)
Modify the code to use current_euid(), and in_egroup_p, as in done
in fs/proc/proc_sysctl.c:test_perm()

Cc: stable@vger.kernel.org
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found