Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45788
b: refs/heads/master
c: 847641d
h: refs/heads/master
v: v3
  • Loading branch information
Marcel Holtmann committed Jan 22, 2007
1 parent d4a4f3a commit 595a69d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 7386397636d49cd5f03da29432467d3e98cbad35
refs/heads/master: 847641d7db15ac3f18b3d4aa05479812abdf397a
6 changes: 6 additions & 0 deletions trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,12 @@ static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_
goto done;
}

if (la->l2_psm > 0 && btohs(la->l2_psm) < 0x1001 &&
!capable(CAP_NET_BIND_SERVICE)) {
err = -EACCES;
goto done;
}

write_lock_bh(&l2cap_sk_list.lock);

if (la->l2_psm && __l2cap_get_sock_by_addr(la->l2_psm, &la->l2_bdaddr)) {
Expand Down

0 comments on commit 595a69d

Please sign in to comment.