diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2016-07-16 16:22:55 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-08-08 10:17:16 -0400 |
commit | 13bcc6a2853435bb5dad368bcbaa9d2a5b9c0ac4 (patch) | |
tree | 3c852b1ed6545b504ea23f5353d3570f46316d16 /include/linux/sysctl.h | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
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>
Diffstat (limited to 'include/linux/sysctl.h')
-rw-r--r-- | include/linux/sysctl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 697e160c78d0..f166ca0203e2 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -155,8 +155,7 @@ struct ctl_table_set { | |||
155 | 155 | ||
156 | struct ctl_table_root { | 156 | struct ctl_table_root { |
157 | struct ctl_table_set default_set; | 157 | struct ctl_table_set default_set; |
158 | struct ctl_table_set *(*lookup)(struct ctl_table_root *root, | 158 | struct ctl_table_set *(*lookup)(struct ctl_table_root *root); |
159 | struct nsproxy *namespaces); | ||
160 | int (*permissions)(struct ctl_table_header *head, struct ctl_table *table); | 159 | int (*permissions)(struct ctl_table_header *head, struct ctl_table *table); |
161 | }; | 160 | }; |
162 | 161 | ||