Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78372
b: refs/heads/master
c: 790a353
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jan 28, 2008
1 parent d0099fa commit 19f6dfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 024626e36d75fc8c6e32d50d4c68bfc3b8df5fdf
refs/heads/master: 790a35328991b01181ff5624bdb084053b6fac54
9 changes: 7 additions & 2 deletions trunk/net/core/sysctl_net_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ static __net_init int sysctl_core_net_init(struct net *net)
if (tbl == NULL)
goto err_dup;

for (tmp = tbl; tmp->procname; tmp++)
tmp->mode &= ~0222;
for (tmp = tbl; tmp->procname; tmp++) {
if (tmp->data >= (void *)&init_net &&
tmp->data < (void *)(&init_net + 1))
tmp->data += (char *)net - (char *)&init_net;
else
tmp->mode &= ~0222;
}
}

net->sysctl_core_hdr = register_net_sysctl_table(net,
Expand Down

0 comments on commit 19f6dfd

Please sign in to comment.