]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50c53f56a4e2c33e238b1a2f7028cd222910363c
treed3241580b5f95515b9a1cedea588cea91d35f816
parentc6b71380cfc6fa087f7fcb7100057f19773ede79
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