All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: bluez-devel@lists.sourceforge.net, hal@lists.freedesktop.org,
	networkmanager-list@gnome.org
Subject: [Bluez-devel] [RFC] HAL/Bluez integration
Date: Sun, 11 Jun 2006 21:45:51 +0100	[thread overview]
Message-ID: <20060611204551.GA19920@srcf.ucam.org> (raw)

I've put a tarball up at 
http://www.codon.org.uk/~mjg59/tmp/hal-bluetooth.tar.gz as a first 
attempt at some degree of integration. The current interface is 
basically:

1) Bluetooth HCIs support a "Scan" method. Calling this will populate 
the tree with any located bluetooth devices.
2) Bluetooth devices support "Pair" and "Browse" methods. Calling the 
first will attempt to initiate a pairing interaction - the second will 
populate the tree with any services found on the device via SDP.

So it's fairly simple at the moment. The obvious next step is to allow 
services to provide rfcomm-binding methods and the like, and to ensure 
that relevant pieces of service information are provided via sdp.

Now, there's a couple of issues:

1) I'm not sure about the pairing interface. Right now, calling the pair 
method prompts hcid to attempt to send a message to a registered pairing 
agent via bluetooth. This strikes me as a mild security problem, since 
there's no mechanism for ensuring that it's the current user who has 
registered a pairing agent. The best that can be done is to attempt to 
register an agent, notice that the registration has failed and then bail 
before attempting to make the connection (setting an appropriate error). 
This isn't entirely ideal. David, can you see any way that PolicyKit can 
help us here?

2) The SDP interface in bluez is currently labelled "experimental" and 
is fairly limited in functionality. I tried going back through the 
mailing list archives, but the sourceforge interface makes me cry - has 
there been discussion of what this interface should look like and the 
technical problems involved?

Obligatory screenshot - http://www.codon.org.uk/~mjg59/tmp/bluetooth.png

-- 
Matthew Garrett | mjg59@srcf.ucam.org


_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2006-06-11 20:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-11 20:45 Matthew Garrett [this message]
2006-06-15 19:56 ` [RFC] HAL/Bluez integration David Zeuthen
2006-06-17 11:02   ` [Bluez-devel] " Marcel Holtmann
2006-06-17 11:06 ` Marcel Holtmann

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=20060611204551.GA19920@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=hal@lists.freedesktop.org \
    --cc=networkmanager-list@gnome.org \
    /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.