]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sysctl_net.c
OMAP: dmtimer: enable all timers to be wakeup events
[linux-2.6-omap-h63xx.git] / net / sysctl_net.c
index cefbc367d8beb0d4f1d3b801d9a364ea29cc49fa..0b15d7250c401356cf0c6e87679437788f157ac8 100644 (file)
@@ -61,7 +61,7 @@ static struct ctl_table_root net_sysctl_root = {
 static int net_ctl_ro_header_perms(struct ctl_table_root *root,
                struct nsproxy *namespaces, struct ctl_table *table)
 {
-       if (namespaces->net_ns == &init_net)
+       if (net_eq(namespaces->net_ns, &init_net))
                return table->mode;
        else
                return table->mode & ~0222;
@@ -73,7 +73,9 @@ static struct ctl_table_root net_sysctl_ro_root = {
 
 static int sysctl_net_init(struct net *net)
 {
-       setup_sysctl_set(&net->sysctls, NULL, is_seen);
+       setup_sysctl_set(&net->sysctls,
+                        &net_sysctl_ro_root.default_set,
+                        is_seen);
        return 0;
 }