From: Wootak Jung Date: Wed, 7 Nov 2018 06:44:34 +0000 (+0900) Subject: Change network_fw uid/gid from root for bluetooth-stack-up.service X-Git-Tag: accepted/tizen/unified/20181109.062821~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9eba274db06da55aaf9ecc3a87d6f4fc6f4fe9d6;hp=7f531ecc3dad05fdc949611127b166e501180bde;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git 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 --- 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