linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why doesn't plugins/sixaxis.c set devices as Trusted?
@ 2015-07-06 13:17 Bastien Nocera
  2015-07-07  4:31 ` Alexander Holler
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien Nocera @ 2015-07-06 13:17 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org; +Cc: Szymon Janc

Hey,

I don't understand the reason why plugins/sixaxis.c doesn't set the
device as trusted when plugged in.

I would expect the Sixaxis plugin to do that, because there's no way to
assert, in the UI, where the device information is coming from to trust
it automatically, and I don't really want to show a "Do you want to
allow device X to connect as a HID device" for devices which weren't
setup in the UI.

For example, I could create a program on another computer with similar
characteristics (same name, class and service UUIDs) which would make
it indistinguishable from the device that was plugged in.

If security was a problem, we probably shouldn't be setting the master
BD address on the pad unless there's a running agent.

So, do we stop setup_device() early if there's no agent running and set
as trusted, or simply always set as trusted?

Cheers

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-07-09 20:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06 13:17 Why doesn't plugins/sixaxis.c set devices as Trusted? Bastien Nocera
2015-07-07  4:31 ` Alexander Holler
2015-07-07  5:11   ` Bastien Nocera
2015-07-07  5:34     ` Alexander Holler
2015-07-07  6:49       ` Alexander Holler
2015-07-07  5:35     ` Bastien Nocera
2015-07-07 14:16   ` Harald Schmitt
2015-07-09 20:26     ` Alexander Holler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).