X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fsysctl_net.c;h=0b15d7250c401356cf0c6e87679437788f157ac8;hb=a0e7d508f6c9e00d1749353eb82db08dca178f41;hp=972201cd5fa76791be3d558252d3efb5b009f92e;hpb=62b3f981886b9b899eb0fc5fb59375f4512a1bd1;p=linux-2.6-omap-h63xx.git diff --git a/net/sysctl_net.c b/net/sysctl_net.c index 972201cd5fa..0b15d7250c4 100644 --- a/net/sysctl_net.c +++ b/net/sysctl_net.c @@ -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;