Add the cap_net_raw capability in bluetoothd 96/211096/1 accepted/tizen/unified/20190730.224306 submit/tizen/20190730.053209
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 30 Jul 2019 04:43:42 +0000 (13:43 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 30 Jul 2019 04:44:14 +0000 (13:44 +0900)
bluetoothd directly use HCI socket for vendor command such as
"socket(AF_BLUETOOTH, SOCK_RAW | SOCK_CLOEXEC, BTPROTO_HCI)".
For writing the packet we should add 'cap_net_raw' capability.

Change-Id: Iefe04fcc992c7ee53075d68bfeda0ca93173dc0a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluez-start.service

index 9cd6321..7f7c4a1 100644 (file)
@@ -8,7 +8,7 @@ Group=network_fw
 Type=dbus
 BusName=org.bluez
 ExecStart=/usr/libexec/bluetooth/bluetoothd -d -C
-Capabilities=cap_net_admin,cap_net_bind_service,cap_dac_override=i
+Capabilities=cap_net_admin,cap_net_raw,cap_net_bind_service,cap_dac_override=i
 SecureBits=keep-caps
 SmackProcessLabel=System
 KillMode=process