OSDN Git Service

sixaxis: Don't mark USB plugged device as trusted
authorSzymon Janc <szymon.janc@gmail.com>
Wed, 8 Jan 2014 00:02:22 +0000 (01:02 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 9 Jan 2014 15:54:57 +0000 (17:54 +0200)
There were some valid conserns raised against marking plugged device
as trusted. Mainly due to posibility of crafted USB device. With this
patch user will be asked to confirm service connection and device can
be marked as trusted like any other devices.

plugins/sixaxis.c

index 1154c15..4fdeff3 100644 (file)
@@ -228,7 +228,6 @@ 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;
 }