Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88007
b: refs/heads/master
c: 3480c63
h: refs/heads/master
i:
  88005: a78f44c
  88003: e802eba
  87999: e2a550a
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Mar 28, 2008
1 parent ae1593f commit 796dd59
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 349fb2d6492e7d644bc8e670ba11d764a3e2901b
refs/heads/master: 3480c63bdf008e9289aab94418f43b9592978fff
3 changes: 3 additions & 0 deletions trunk/net/llc/af_llc.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ static int llc_ui_create(struct net *net, struct socket *sock, int protocol)
struct sock *sk;
int rc = -ESOCKTNOSUPPORT;

if (!capable(CAP_NET_RAW))
return -EPERM;

if (net != &init_net)
return -EAFNOSUPPORT;

Expand Down

0 comments on commit 796dd59

Please sign in to comment.