[Devel] [PATCH 5/7][UTS] Use the ctl paths to register tables
Pavel Emelyanov
xemul at openvz.org
Fri Nov 30 05:13:24 PST 2007
Same as with the IPC sysctls - I do not add any ctl roots
to handle multiple UTS namespaces, since we already track
this case in ctl handlers.
Signed-off-by: Pavel Emelyanov <xemul at openvz.org>
---
diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
index fe3a56c..568ff0b 100644
--- a/kernel/utsname_sysctl.c
+++ b/kernel/utsname_sysctl.c
@@ -128,19 +128,17 @@ static struct ctl_table uts_kern_table[] = {
{}
};
-static struct ctl_table uts_root_table[] = {
+static struct ctl_path uts_root_path[] = {
{
- .ctl_name = CTL_KERN,
.procname = "kernel",
- .mode = 0555,
- .child = uts_kern_table,
+ .ctl_name = CTL_KERN,
},
{}
};
static int __init utsname_sysctl_init(void)
{
- register_sysctl_table(uts_root_table);
+ register_sysctl_paths(uts_root_path, uts_kern_table);
return 0;
}
--
1.5.3.4
More information about the Devel
mailing list