We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc738f commit 81a1d3cCopy full SHA for 81a1d3c
net/sysctl_net.c
@@ -61,7 +61,7 @@ static struct ctl_table_root net_sysctl_root = {
61
static int net_ctl_ro_header_perms(struct ctl_table_root *root,
62
struct nsproxy *namespaces, struct ctl_table *table)
63
{
64
- if (namespaces->net_ns == &init_net)
+ if (net_eq(namespaces->net_ns, &init_net))
65
return table->mode;
66
else
67
return table->mode & ~0222;
0 commit comments