mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 18:56:14 +00:00
net: sysctl_net - use net_eq to compare nets
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
acc738fec0
commit
81a1d3c31e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue