systemd: change GID/UID of non-daemon service 47/95047/1 accepted/tizen/common/20161102.122220 accepted/tizen/ivi/20161103.000139 accepted/tizen/mobile/20161103.000054 accepted/tizen/tv/20161103.000109 accepted/tizen/wearable/20161103.000124 submit/tizen/20161102.085655
authorSooyoung Ha <yoosah.ha@samsung.com>
Wed, 2 Nov 2016 05:48:47 +0000 (14:48 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Wed, 2 Nov 2016 05:53:11 +0000 (14:53 +0900)
To follow the platform's secure profile, the group ID and User ID of
services which are not daemon and not root privilaged are modified.

Change-Id: I5d3bc561bf1239817c8f12c68c180d0edac9e5b0
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
filesystem/usr/lib/systemd/system/emul-common-preinit.service
filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service
packaging/system-plugin-emulator.spec

index 4e47488..b092adb 100644 (file)
@@ -5,6 +5,10 @@ After=vconf-setup.service
 Before=basic.target
 
 [Service]
+User=service_fw
+Group=service_fw
+Capabilities=cap_dac_override=i
+SecureBits=keep-caps
 Type=oneshot
 
 # execute prerun scripts.
index de30797..31ec4a6 100644 (file)
@@ -3,6 +3,10 @@ Description=Audio volume setup on emulator
 DefaultDependencies=no
 
 [Service]
+User=service_fw
+Group=service_fw
+Capabilities=cap_dac_override=i
+SecureBits=keep-caps
 Type=oneshot
 SmackProcessLabel=System
 ExecStart=/usr/bin/amixer "cset" "name='Master Playback Switch'" "1"
index 8356995..ed3f676 100644 (file)
@@ -1,5 +1,5 @@
 Name: system-plugin-emulator
-Version: 0.1.7
+Version: 0.1.8
 Release: 1
 Summary: System plugin for emulator
 License: Apache-2.0