Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66393
b: refs/heads/master
c: c48dad7
h: refs/heads/master
i:
  66391: 0d67b57
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Oct 10, 2007
1 parent a0eadb2 commit f3c75c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8a5ec672768c3cf4d51d7a63fc071520afa1617
refs/heads/master: c48dad7ecd84eac92afbe02bd69fca9983a65a56
7 changes: 7 additions & 0 deletions trunk/net/netfilter/nf_sockopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ static int nf_sockopt(struct sock *sk, int pf, int val,
struct nf_sockopt_ops *ops;
int ret;

if (sk->sk_net != &init_net)
return -ENOPROTOOPT;

if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)
return -EINTR;

Expand Down Expand Up @@ -125,6 +128,10 @@ static int compat_nf_sockopt(struct sock *sk, int pf, int val,
struct nf_sockopt_ops *ops;
int ret;

if (sk->sk_net != &init_net)
return -ENOPROTOOPT;


if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)
return -EINTR;

Expand Down

0 comments on commit f3c75c8

Please sign in to comment.