From: Marcel Holtmann <marcel@holtmann.org>
To: "Fred Schättgen" <bluez-devel@schaettgen.de>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>,
Nils Faerber <nils.faerber@kernelconcepts.de>
Subject: Re: [Bluez-devel] Force pairing on single connection?
Date: Fri, 19 Mar 2004 01:13:21 +0100 [thread overview]
Message-ID: <1079655201.3301.113.camel@pegasus> (raw)
In-Reply-To: <200403171523.44542.bluez-devel@schaettgen.de>
Hi Fred,
> > you must issue a HCI_Authenticate command on the HCI socket. There is no
> > other method at the moment. I was thinking about adding an ioctl to the
> > L2CAP socket so this can also be triggered by normal users.
>
> This would in fact be very useful. With it we could make our obex push server
> accept connections from everyone, while other services require authentication
> (the services don't have root privileges). Did you add that ioctl already?
> If not, do you think it's save for us to use a little suid program to let
> normal users issue HCI_AUTHENTICATION_REQUESTED in the meantime?
>
> > Other proposals are welcome.
>
> I don't understand why there should be an l2cap ioctl for it. Isn't it enough
> to let everybody use HCI_AUTHENTICATION_REQUESTED, just like it's the case
> for HCI_INQUIRY and add a helper function to hci_lib.h?
the point for an ioctl is to make it easier for the programmer, because
for the HCI command you need to find out the connection handle and the
open L2CAP/RFCOMM socket already knows its handle.
> Btw. there is a related issue where I don't have an answer for..
> how can we deal with pairing in a multi-user environment? At the moment,
> whoever is logged in can enter a pin when a device requests authentication.
> What if I don't trust the other users? Someone else may have paired with a
> device with a faked address, so the fact that a connection could be
> authenticated doesn't mean that *I* verified the identity of the other party.
> I don't have an idea how this could be handled with the standard HCI
> functions though - can I pair two devices again while the current link is
> already authenticated? If this is possible, then BlueZ could remember the old
> link key and provide an interface for applications to find out if the
> currently used link key is the "successor" of a key where we checked the
> identity of the other device ourself.
> The other solution - letting only an administrator pair devices - doesn't seem
> to be a nice solution too. Any ideas?
In the early days I had a long discussion about multi-user environments
with Max. I hope everything of that is in the archive, but actually none
of us had the right solution for it. The Bluetooth specification don't
really talks about it, as it also don't talks about multiple dongles on
the same host and the interface to the HCI, L2CAP and RFCOMM layers for
userspace applications.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2004-03-19 0:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-09 15:03 [Bluez-devel] Force pairing on single connection? Nils Faerber
2004-02-10 10:05 ` Marcel Holtmann
[not found] ` <1076408056.17071.53.camel@localhost>
2004-02-10 10:16 ` Marcel Holtmann
2004-03-17 14:23 ` Fred Schättgen
2004-03-19 0:13 ` Marcel Holtmann [this message]
2004-03-19 17:06 ` Fred Schättgen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1079655201.3301.113.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
--cc=bluez-devel@schaettgen.de \
--cc=nils.faerber@kernelconcepts.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.