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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 23:08:34 +0000 (16:08 -0700)
commitacbf720a11a80b0d284f6654bb2acc7404536037
tree8c8f05d6014db7b734318578691d676290f3e74f
parenta0348152bd365caadc105f11da03fc020bcc6226
net: Update the sysctl permissions handler to test effective uid/gid

commit 2433c8f094a008895e66f25bd1773cdb01c91d01 upstream.

Modify the code to use current_euid(), and in_egroup_p, as in done
in fs/proc/proc_sysctl.c:test_perm()

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sysctl_net.c