Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290991
b: refs/heads/master
c: 801f13b
h: refs/heads/master
i:
  290989: 33ddbca
  290987: c3ec719
  290983: 4c9a9bf
  290975: a79dd99
v: v3
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Feb 20, 2012
1 parent b06c8e6 commit 51bfb23
Show file tree
Hide file tree
Showing 2 changed files with 6 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: cd82e61c110a36e398323e422896fcfe05879fed
refs/heads/master: 801f13bd8ecc58f2cf42ec602a2b5db10fc5a132
5 changes: 5 additions & 0 deletions trunk/net/bluetooth/hci_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,11 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_le
goto done;
}

if (!capable(CAP_NET_ADMIN)) {
err = -EPERM;
goto done;
}

set_bit(HCI_PI_MGMT_INIT, &hci_pi(sk)->flags);
break;

Expand Down

0 comments on commit 51bfb23

Please sign in to comment.