OSDN Git Service

sysctl: Add ctl_table chains into cstring paths
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 21 Jan 2012 20:35:23 +0000 (12:35 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Jan 2012 00:37:55 +0000 (16:37 -0800)
commitec6a52668d0bbc6d648e978c327150254bf1ce7f
treed3241580b5f95515b9a1cedea588cea91d35f816
parent6e9d5164153ad6539edd31e7afb02a3e79124cad
sysctl: Add ctl_table chains into cstring paths

For any component of table passed to __register_sysctl_paths
that actually serves as a path, add that to the cstring path
that is passed to __register_sysctl_table.

The result is that for most calls to __register_sysctl_paths
we only pass a table to __register_sysctl_table that contains
no child directories.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/proc_sysctl.c