From 8e13ef936f4296396a523e823352f26180bb85d2 Mon Sep 17 00:00:00 2001 From: Hyuk Lee Date: Thu, 29 Mar 2018 14:41:31 +0900 Subject: [PATCH] Assign the network_fw UID / GID to bluetooth share service Change-Id: I5f6bfefa9fa86ac8d81c63564aa70c07ddbcecca Signed-off-by: Hyuk Lee --- packaging/bluetooth-share-start.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/bluetooth-share-start.service b/packaging/bluetooth-share-start.service index 4a46d01..372836e 100644 --- a/packaging/bluetooth-share-start.service +++ b/packaging/bluetooth-share-start.service @@ -2,10 +2,13 @@ Description=Service to run bluetooth-share normally [Service] +User=network_fw +Group=network_fw Type=oneshot SmackProcessLabel=System +SupplementaryGroups=priv_mediastorage priv_externalstorage ExecStartPre=/usr/bin/rm -f /run/.bluetooth_share_start -ExecStart=/usr/bin/systemctl start --no-block bluetooth-share.service +ExecStart=/usr/bin/bluetooth-share RemainAfterExit=no SuccessExitStatus=1 StartLimitInterval=1 -- 2.7.4