Bluetooth fixes for 2.6.20-rc5
Subsystems (2)
Hi Dave,
here are two additional fixes for the Bluetooth subsystem that should go in before the final 2.6.20 release. It was possible that the well known PSM could be bound by anybody. That should not be possible like TCP/IP ports below 1024 are also restricted. The other one is a simple endian fix. Please forward them to Linus as soon as possible.
Regards
Marcel
Please pull from
git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6.git
This will update the following files:
net/bluetooth/l2cap.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
through these ChangeSets:
Commit: 847641d7db15ac3f18b3d4aa05479812abdf397a
Author: Marcel Holtmann <[email protected]> Mon, 22 Jan 2007 22:00:45 +0100
[Bluetooth] Restrict well known PSM to privileged users
The PSM values below 0x1001 of L2CAP are reserved for well known services. Restrict the possibility to bind them to privileged users.
Commit: 7386397636d49cd5f03da29432467d3e98cbad35
Author: Marcel Holtmann <[email protected]> Mon, 22 Jan 2007 22:00:40 +0100
[Bluetooth] Missing endian swapping for L2CAP socket list
The PSM value in the L2CAP socket list must be converted to host order before printing it.
David Miller
maintainerFrom: Marcel Holtmann <[email protected]>
Date: Mon, 22 Jan 2007 22:42:14 +0100
Quoted 7 lines
Hi Dave,
here are two additional fixes for the Bluetooth subsystem that should go in before the final 2.6.20 release. It was possible that the well known PSM could be bound by anybody. That should not be possible like TCP/IP ports below 1024 are also restricted. The other one is a simple endian fix. Please forward them to Linus as soon as possible.
Pulled, thanks Marcel.
BTW, do you know if anyone has successfully used the Linux Bluetooth stack to communicate with the Nintendo Wii controllers? I am under the impression that they speak bluetooth. :)
Hi Dave,
Quoted 4 lines
BTW, do you know if anyone has successfully used the Linux Bluetooth stack to communicate with the Nintendo Wii controllers? I am under the impression that they speak bluetooth. :)
I have one of these and I played with it. They use HID over Bluetooth as protocol, but all reports are vendor specific. So you need a specific driver to make something useful out of these events.
However it is fun to switch on the leds and play with rumble pack or motion sensor.
Regards
Marcel
David Miller
maintainerFrom: Marcel Holtmann <[email protected]>
Date: Wed, 24 Jan 2007 08:38:53 +0100
Quoted 3 lines
I have one of these and I played with it. They use HID over Bluetooth as protocol, but all reports are vendor specific. So you need a specific driver to make something useful out of these events.
It really shouldn't be hard to reverse engineer this right? Just press a button and see what it spits out?
Sure, the rotational events from the motion sensor et al. might take a little time to figure out, but it should be doable.
Quoted 2 lines
However it is fun to switch on the leds and play with rumble pack or motion sensor.
Hehe :-)
Hi Dave,
Quoted 9 lines
Quoted 3 lines
I have one of these and I played with it. They use HID over Bluetooth as protocol, but all reports are vendor specific. So you need a specific driver to make something useful out of these events.
It really shouldn't be hard to reverse engineer this right? Just press a button and see what it spits out?
Sure, the rotational events from the motion sensor et al. might take a little time to figure out, but it should be doable.
some stuff has already been done in this area. I put some information and a link to it on my page:
http://www.holtmann.org/linux/bluetooth/wiimote.html
The hardest part at the moment is to get the speaker on the Wiimote doing something useful and I personally wanna get to the internal flash area of the Bluetooth chip.
Regards
Marcel