Return-Path: From: Szymon Janc To: Juha Kuikka Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH 3/3] sixaxis: Set created devices trusted by default Date: Wed, 28 Dec 2016 17:07:12 +0100 Message-ID: <148295789.8zPOI8aDb3@ix> In-Reply-To: <1482384054-59718-4-git-send-email-juha.kuikka@synapse.com> References: <1482384054-59718-1-git-send-email-juha.kuikka@synapse.com> <1482384054-59718-4-git-send-email-juha.kuikka@synapse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Juha, On Wednesday, 21 December 2016 21:20:54 CET Juha Kuikka wrote: > If user has enabled the sixaxis plugin and plugs a controller in, > it can be assumed they also want the controllers to be able to connect > automatically. > --- > plugins/sixaxis.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c > index 1fb2091..ba96b54 100644 > --- a/plugins/sixaxis.c > +++ b/plugins/sixaxis.c > @@ -349,6 +349,7 @@ static bool setup_device(int fd, int index, struct > btd_adapter *adapter) btd_device_set_pnpid(device, devices[index].source, > devices[index].vid, devices[index].pid, devices[index].version); > btd_device_set_temporary(device, false); > + btd_device_set_trusted(device, true); > > return true; > } This was already NACKed in the past for security reasons (mostly due to possibility of fake device being trusted). -- pozdrawiam Szymon Janc