Bluetooth: Send global configuration updates to all management users
[deliverable/linux.git] / net / bluetooth / hci_sock.c
index f4b10344b1e5833048793a7de4307603c0a45e52..7c719602dbca251ec08313fbdf8f14e4420c8155 100644 (file)
@@ -808,10 +808,15 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
                 * socket when binding keeps this functionality. They
                 * however might be cleared later and then sending of these
                 * events will be disabled, but that is then intentional.
+                *
+                * This also enables generic events that are safe to be
+                * received by untrusted users. Example for such events
+                * are changes to settings, class of device, name etc.
                 */
                if (haddr.hci_channel == HCI_CHANNEL_CONTROL) {
                        hci_sock_set_flag(sk, HCI_MGMT_INDEX_EVENTS);
                        hci_sock_set_flag(sk, HCI_MGMT_UNCONF_INDEX_EVENTS);
+                       hci_sock_set_flag(sk, HCI_MGMT_GENERIC_EVENTS);
                }
                break;
        }
This page took 0.04092 seconds and 5 git commands to generate.