From 9eba274db06da55aaf9ecc3a87d6f4fc6f4fe9d6 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Wed, 7 Nov 2018 15:44:34 +0900 Subject: [PATCH] Change network_fw uid/gid from root for bluetooth-stack-up.service For using insmod, service file needs CAP_SYS_MODULE capability as network_fw. Change-Id: I7b690fc7e4cc83f9e08412fb510af8fc86560fa6 --- packaging/bluetooth-stack-up.service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/bluetooth-stack-up.service b/packaging/bluetooth-stack-up.service index fe13beb..cc1daab 100644 --- a/packaging/bluetooth-stack-up.service +++ b/packaging/bluetooth-stack-up.service @@ -2,8 +2,12 @@ Description=Service to run bt-stack-up.sh script to start BT functions [Service] +User=network_fw +Group=network_fw Type=oneshot SupplementaryGroups=priv_mediastorage priv_externalstorage dialout +Capabilities=cap_sys_module=i +SecureBits=keep-caps ExecStart=/usr/etc/bluetooth/bt-stack-up.sh RemainAfterExit=yes -- 2.7.4