projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc738f
)
net: sysctl_net - use net_eq to compare nets
author
Cyrill Gorcunov
<gorcunov@openvz.org>
Mon, 16 Mar 2009 15:23:30 +0000
(16:23 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Mon, 16 Mar 2009 15:23:30 +0000
(16:23 +0100)
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/sysctl_net.c
patch
|
blob
|
history
diff --git
a/net/sysctl_net.c
b/net/sysctl_net.c
index 972201cd5fa76791be3d558252d3efb5b009f92e..0b15d7250c401356cf0c6e87679437788f157ac8 100644
(file)
--- 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 (n
amespaces->net_ns == &init_net
)
+ if (n
et_eq(namespaces->net_ns, &init_net)
)
return table->mode;
else
return table->mode & ~0222;