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 <[EMAIL PROTECTED]>

---

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to