]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sysctl: Stop implicitly passing current into sysctl_table_root.lookup
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 16 Jul 2016 20:22:55 +0000 (15:22 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 8 Aug 2016 14:17:16 +0000 (09:17 -0500)
commit13bcc6a2853435bb5dad368bcbaa9d2a5b9c0ac4
tree3c852b1ed6545b504ea23f5353d3570f46316d16
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
sysctl: Stop implicitly passing current into sysctl_table_root.lookup

Passing nsproxy into sysctl_table_root.lookup was a premature
optimization in attempt to avoid depending on current.  The
directory /proc/self/sys has not appeared and if and when
it does this code will need to be reviewed closely and reworked
anyway.  So remove the premature optimization.

Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/proc/proc_sysctl.c
include/linux/sysctl.h
net/sysctl_net.c