Skip to contentSkip to conversation

Service level security for RFCOMM

Bluez-devel Marcel Holtmann 4 participants 7 messages Oct 29, 2004 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

Hi Folks,

actually it seems that nobody really cares about service level security on the RFCOMM layer. Or people are too lazy to send in a patch. However, I spent some hours with thinking about it and the core stuff of a small framework for providing authentication and encrypt feedback from HCI to higher level protocols is finished.

The problem now is to change the RFCOMM state machine to deal with it and reject connections in the failure case. After looking at the state machine of RFCOMM, I realized that there are two posibilities when to trigger the authentication. One is after we receive the PN CMD and the other after the SABM for the specific channel. The specification says nothing about that. What are the pros and cons?

And btw, who is really interested in this feature or needs it?

Regards

Marcel

-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

I'm afraid I don't understand the issues enough to know if I need the feature.

Signature · 14 lines
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
author maintainer
#2 lore raw

Hi James,

Quoted 2 lines

I'm afraid I don't understand the issues enough to know if I need the feature.

at the moment you can trigger authentication and encryption for server sockets on a per PSM basis for the L2CAP. If you use RFCOMM you can't trigger this and especially not per RFCOMM channel.

Regards

Marcel

-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw
In reply to Marcel Holtmann
Quoted 5 lines · Marcel Holtmann

actually it seems that nobody really cares about service level security on the RFCOMM layer. Or people are too lazy to send in a patch. However, I spent some hours with thinking about it and the core stuff of a small framework for providing authentication and encrypt feedback from HCI to higher level protocols is finished.

Perhaps this is because no-one except you and Max understands the RFComm state-machine? :-)

Quoted 8 lines

The problem now is to change the RFCOMM state machine to deal with it and reject connections in the failure case. After looking at the state machine of RFCOMM, I realized that there are two posibilities when to trigger the authentication. One is after we receive the PN CMD and the other after the SABM for the specific channel. The specification says nothing about that. What are the pros and cons?

And btw, who is really interested in this feature or needs it?

This is useful (and probably required, I can't remember) for JSR-82. Especially for people who want to encrypted/authenticated OBEX connections.

Are you going to do the client-side too?

Steve

Signature · 2 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)
#4 lore raw
Quoted 6 lines · Stephen Crane
Quoted 5 lines · Marcel Holtmann

actually it seems that nobody really cares about service level security on the RFCOMM layer. Or people are too lazy to send in a patch. However, I spent some hours with thinking about it and the core stuff of a small framework for providing authentication and encrypt feedback from HCI to higher level protocols is finished.

..

Quoted 1 line
Quoted 1 line

And btw, who is really interested in this feature or needs it?

Over here! I'm interested.
I would like to integrate service level security into the meta server of kdebluetooth. At the moment you can allow/disallow connections (or show a confirmation popup) based on the service/rfcomm channel and on the peer device address, but we can't ask for an authenticated link. Being able to use service level security would allow us to force authenticated links when using any service other than obex push, which should work without having to pair devices first.
IIRC I asked you to allow every user to send authentication requests a few months ago, so that even programs running without root privileges can trigger authentication. But then I didn't post it on the list as you told me, to let other people comment on the security implications. The corresonding patch changed only a single bit somewhere, but of course this solution is not very conveniant. But if you want authentication to appear as a property of a single rfcomm connection that's fine too, as long as a regular users are allowed to use this feature. Would that be safe?

regards
Fred

Signature · 13 lines
Fred Schaettgen
[email protected]


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
author maintainer
#6 lore raw
In reply to Stephen Crane

Hi Steve,

Quoted 8 lines
Quoted 5 lines

actually it seems that nobody really cares about service level security on the RFCOMM layer. Or people are too lazy to send in a patch. However, I spent some hours with thinking about it and the core stuff of a small framework for providing authentication and encrypt feedback from HCI to higher level protocols is finished.

Perhaps this is because no-one except you and Max understands the RFComm state-machine? :-)

this maybe right, but it is a problem of the RFCOMM protocol itself and the differences between the 1.0b and 1.1 specification :(

Quoted 7 lines
Quoted 7 lines

The problem now is to change the RFCOMM state machine to deal with it and reject connections in the failure case. After looking at the state machine of RFCOMM, I realized that there are two posibilities when to trigger the authentication. One is after we receive the PN CMD and the other after the SABM for the specific channel. The specification says nothing about that. What are the pros and cons?

Quoted 5 lines
Quoted 1 line

And btw, who is really interested in this feature or needs it?

This is useful (and probably required, I can't remember) for JSR-82. Especially for people who want to encrypted/authenticated OBEX connections.

And what to do next? When should the authentication be triggered? What should happen if the encryption on a link gets deactivated afterwards?

Quoted 1 line

Are you going to do the client-side too?

I have no plan for this, because I don't see the need. What is bad in using security mode 1 for outgoing and security mode 2 for incoming?

Regards

Marcel

-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author maintainer
#5 lore raw
In reply to Fred Schaettgen

Hi Fred,

Quoted 3 lines
Quoted 1 line
Quoted 1 line

And btw, who is really interested in this feature or needs it?

Over here! I'm interested.

ok, so lets count. The KDE Bluetooth framework will be the first user :)

Quoted 7 lines

I would like to integrate service level security into the meta server of kdebluetooth. At the moment you can allow/disallow connections (or show a confirmation popup) based on the service/rfcomm channel and on the peer device address, but we can't ask for an authenticated link. Being able to use service level security would allow us to force authenticated links when using any service other than obex push, which should work without having to pair devices first.

Quoted 8 lines

IIRC I asked you to allow every user to send authentication requests a few months ago, so that even programs running without root privileges can trigger authentication. But then I didn't post it on the list as you told me, to let other people comment on the security implications. The corresonding patch changed only a single bit somewhere, but of course this solution is not very conveniant. But if you want authentication to appear as a property of a single rfcomm connection that's fine too, as long as a regular users are allowed to use this feature. Would that be safe?

You should always remember that the authentication is per device and not per service. You can trigger it on a per service basis, but it is still common for the complete device.

Regards

Marcel

-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel