From: Jean-Jacques Brucker <jjbrucker@free.fr>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: bluez-devel@lists.sourceforge.net
Subject: Re: hcid pairing bug when security is auto
Date: Sat, 30 Sep 2006 02:18:36 +0200 [thread overview]
Message-ID: <200609300218.36747.jjbrucker@free.fr> (raw)
In-Reply-To: <1159571362.29673.34.camel@localhost>
Le Samedi 30 Septembre 2006 01:09, Marcel Holtmann a =E9crit=A0:
> Hi Jean-Jacques,
>
> > There was a bug in hcid when pairing and security is in auto mode.
>
> that is not a bug. It is a feature.
>
> > The code watched if the connection was out or in , but in any case the
> > remote device can ask or not for authentication (and encryption).
> >
> > By example Sagem and Ericsson mobile phones ask for
> > authentication/encryption with new devices, whithout watching who is
> > trying to connect first ... !
> >
> > Then the code was looking for pincodes in a file
> > "/var/lib/<local_bdaddr>/pincodes" but that wasn't write by any know
> > applications. (and it is not a place to make file to be write by
> > users...).
>
> This is for debugging purpose and really special use cases.
Which ones (use cases) ?
>
> > Then the code was trying to give the hand to dbus applications ("hey,
> > what this f... i have ask for auto mode !!").
>
> Read the hcid.conf and then you understand what auto means.
>
> > As i didn't know if there was some software that use the
> > "/var/lib/<local_bdaddr>/pincodes" file i let this file as a first base
> > to search and i have add a config file with the same name (but without
> > the same syntax) in the bluez config directory.
>
> PIN codes are not configuration. They are state file and thus they are
> placed under /var/lib.
>
> > Note: Using dbus is a good idea, but it would better to activate it or
> > not with a flag. Because dbus is very big to be embedded on small (and
> > embedded) systems...
>
> No. See other discussion about this topic. I made my decision. People
> can still use the 2.x generation or fork or whatever. The upstream BlueZ
> goes with D-Bus support. And once you used the D-Bus based API you are
> not going back. You can trust me on this. It solves a lot of problems.
>
> > Note2: I have watch in CVS that bluez used a file named pin in confdir.=
=2E.
> > What i have done is not really a regression. In fact we could insert the
> > content of the pincodes file inside the hcid.conf file .... but I don't
> > really know how to do it with bison (and i dislike bisons !-). At the e=
nd
> > the syntax of my pincodes file is simple and is read on each HCI "PIN
> > code request" command (when security is set to auto) and could be more
> > easily manage by extern software (that doesn't use dbus).
> >
> > PS: I have make the hcid.conf more explicit but I don't have patch man
> > pages for now, but if my patch is used, i'll obviously update them. (and
> > with our without my patch, its already need some updates..).
>
> The default mode for the security manager is now user and it will stay
> this way. No additional hacks around PIN codes are needed. The passkey
> agent interface is the way to go. There exists no argument that can
> convince me otherwise. Try using the passkey agent interface and you
> will see what I mean. We spent a lot of time getting this right and it
> is really nice and handy.
I've tried the bluez passkey-agent, and it is not very practical to have 3=
=20
"deamons" (hcid, dbus-daemon and the passkey agent) just to pair new device=
s.
At least explain me why the auto mode make the difference between outgoing =
and=20
incoming connections ?=20
Or make the auto mode use the default passkey in both cases ! (or remove th=
e=20
auto mode to really force users to use dbus ...).
( How can i connect and pair to new phones quickly, whitout using the=20
agent ? )
> Regards
>
> Marcel
next prev parent reply other threads:[~2006-09-30 0:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 17:19 [Bluez-devel] possible regression under rf interference Marsette Vona
2006-09-29 11:50 ` Marcel Holtmann
2006-09-29 20:08 ` hcid pairing bug when security is auto Jean-Jacques Brucker
2006-09-29 23:09 ` [Bluez-devel] " Marcel Holtmann
2006-09-30 0:18 ` Jean-Jacques Brucker [this message]
2006-09-30 8:01 ` 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=200609300218.36747.jjbrucker@free.fr \
--to=jjbrucker@free.fr \
--cc=bluez-devel@lists.sourceforge.net \
--cc=marcel@holtmann.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox