From: Eric W. Biederman Date: Fri, 16 Nov 2012 03:02:58 +0000 (+0000) Subject: sysctl: Pass useful parameters to sysctl permissions X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~292 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73f7ef435934e952c1d70d83d69921ea5d1f6bd4;p=pandora-kernel.git sysctl: Pass useful parameters to sysctl permissions - Current is implicitly avaiable so passing current->nsproxy isn't useful. - The ctl_table_header is needed to find how the sysctl table is connected to the rest of sysctl. - ctl_table_root is avaiable in the ctl_table_header so no need to it. With these changes it becomes possible to write a version of net_sysctl_permission that takes into account the network namespace of the sysctl table, an important feature in extending the user namespace. Acked-by: Serge Hallyn Signed-off-by: "Eric W. Biederman" Signed-off-by: David S. Miller --- Reading git-diff-tree failed