Set User:Group for edutm services as network_fw:network_fw 85/225485/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Fri, 14 Feb 2020 06:27:09 +0000 (15:27 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 20 Feb 2020 07:32:12 +0000 (16:32 +0900)
[Model]
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem]
[Cause & Measure]
[Checking Method]

[Team] Bluetooth
[Developer] Deokhyun Kim
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I0c6120a1d6aa52920c89f5f79c26676e8f920ba3
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluetooth-edutm-off.service
packaging/bluetooth-edutm-on.service

index 4458e79..8159b3e 100644 (file)
@@ -2,9 +2,13 @@
 Description=Bluetooth EDUTM off
 
 [Service]
-User=root
-Group=root
+User=network_fw
+Group=network_fw
 Type=oneshot
+SmackProcessLabel=System
+
+SecureBits=keep-caps
+Capabilities=cap_net_admin,cap_net_raw=i
 
 ExecStart=/usr/etc/bluetooth/bt-edutm-off.sh
 ExecStartPost=/usr/bin/systemctl stop bluetooth-edutm-on
index 70508dd..08e3c9e 100644 (file)
@@ -2,9 +2,13 @@
 Description=Bluetooth EDUTM on
 
 [Service]
-User=root
-Group=root
+User=network_fw
+Group=network_fw
 Type=oneshot
+SmackProcessLabel=System
+
+SecureBits=keep-caps
+Capabilities=cap_net_admin,cap_net_raw=i
 
 ExecStart=/usr/etc/bluetooth/bt-edutm-on.sh
 RemainAfterExit=yes