[PATCH 4.14 002/116] bluetooth: Perform careful capability checks in hci_sock_ioctl()