aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2017-11-01 18:58:54 +0000
committerConrad Meyer <cem@FreeBSD.org>2017-11-01 18:58:54 +0000
commit648176e095097c5c2642a5627542423e277a5f8e (patch)
treee329d8894d1a6934f32eea28bd6a4ed9457c4c75 /etc
parent9c103b4675e715cf35dc8014888ad87f279d58e8 (diff)
downloadsrc-648176e095097c5c2642a5627542423e277a5f8e.tar.gz
src-648176e095097c5c2642a5627542423e277a5f8e.zip
bluetooth: Default to discoverable off
Try to not expose bluetooth devices to external devices unless the user explicitly configures it, like any other radio/network device. Bluetooth has a long history of security problems and it is probably best to keep it disabled if not needed. Users who do use the bluetooth device should enable "discoverable" in bluetooth.device.conf(5) after this change. Keep in mind that bluetooth addresses can be discovered by passive monitoring or whole address-space scans[0], so a safety conscious user should also disable "connectable" in bluetooth.device.conf(5). [0]: https://www.sans.edu/cyber-research/security-laboratory/article/bluetooth Reviewed by: emax, hselasky Security: maybe Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12831
Notes
Notes: svn path=/head/; revision=325287
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/bluetooth.device.conf2
-rwxr-xr-xetc/rc.d/bluetooth2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/defaults/bluetooth.device.conf b/etc/defaults/bluetooth.device.conf
index 6e6a9811bccf..330548f97bb5 100644
--- a/etc/defaults/bluetooth.device.conf
+++ b/etc/defaults/bluetooth.device.conf
@@ -65,7 +65,7 @@
# NO or 0 do not scan for inquiry requests;
# YES or 1 scan for inquiry requests (default).
-# discoverable="YES"
+# discoverable="NO"
# The encryption_mode parameter controls if the device requires encryption
# to the remote device at connection setup. At connection setup, only the
diff --git a/etc/rc.d/bluetooth b/etc/rc.d/bluetooth
index 5f5a8343408c..ac10719861ae 100755
--- a/etc/rc.d/bluetooth
+++ b/etc/rc.d/bluetooth
@@ -287,7 +287,7 @@ bluetooth_start()
bluetooth_device_authentication_enable="0"
bluetooth_device_class="ff:01:0c"
bluetooth_device_connectable="1"
- bluetooth_device_discoverable="1"
+ bluetooth_device_discoverable="0"
bluetooth_device_encryption_mode="0"
bluetooth_device_hci_debug_level="3"
bluetooth_device_l2cap_debug_level="3"