diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-21 13:26:26 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-24 19:37:55 -0500 |
commit | 6e9d5164153ad6539edd31e7afb02a3e79124cad (patch) | |
tree | ce6cb28dca49f68cc6236dc70a71ecf93593159f /include/linux/sysctl.h | |
parent | f05e53a7fbb28c951c0c8cf3963fa8019ae1d4d3 (diff) |
sysctl: Add support for register sysctl tables with a normal cstring path.
Make __register_sysctl_table the core sysctl registration operation and
make it take a char * string as path.
Now that binary paths have been banished into the real of backwards
compatibility in kernel/binary_sysctl.c where they can be safely
ignored there is no longer a need to use struct ctl_path to represent
path names when registering ctl_tables.
Start the transition to using normal char * strings to represent
pathnames when registering sysctl tables. Normal strings are easier
to deal with both in the internal sysctl implementation and for
programmers registering sysctl tables.
__register_sysctl_paths is turned into a backwards compatibility wrapper
that converts a ctl_path array into a normal char * string.
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, 3 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 43c36acdb628..a514e0f6056d 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -1073,6 +1073,9 @@ extern void setup_sysctl_set(struct ctl_table_set *p, | |||
1073 | extern void retire_sysctl_set(struct ctl_table_set *set); | 1073 | extern void retire_sysctl_set(struct ctl_table_set *set); |
1074 | 1074 | ||
1075 | void register_sysctl_root(struct ctl_table_root *root); | 1075 | void register_sysctl_root(struct ctl_table_root *root); |
1076 | struct ctl_table_header *__register_sysctl_table( | ||
1077 | struct ctl_table_root *root, struct nsproxy *namespaces, | ||
1078 | const char *path, struct ctl_table *table); | ||
1076 | struct ctl_table_header *__register_sysctl_paths( | 1079 | struct ctl_table_header *__register_sysctl_paths( |
1077 | struct ctl_table_root *root, struct nsproxy *namespaces, | 1080 | struct ctl_table_root *root, struct nsproxy *namespaces, |
1078 | const struct ctl_path *path, struct ctl_table *table); | 1081 | const struct ctl_path *path, struct ctl_table *table); |