From: Sooyoung Ha Date: Wed, 2 Nov 2016 05:48:47 +0000 (+0900) Subject: systemd: change GID/UID of non-daemon service X-Git-Tag: submit/tizen/20161102.085655^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4a690df02ba4a56efe12c5efb065c2de0fae63b;p=platform%2Fadaptation%2Femulator%2Fsystem-plugin-emulator.git systemd: change GID/UID of non-daemon service 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 --- diff --git a/filesystem/usr/lib/systemd/system/emul-common-preinit.service b/filesystem/usr/lib/systemd/system/emul-common-preinit.service index 4e47488..b092adb 100644 --- a/filesystem/usr/lib/systemd/system/emul-common-preinit.service +++ b/filesystem/usr/lib/systemd/system/emul-common-preinit.service @@ -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. diff --git a/filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service b/filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service index de30797..31ec4a6 100644 --- a/filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service +++ b/filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service @@ -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" diff --git a/packaging/system-plugin-emulator.spec b/packaging/system-plugin-emulator.spec index 8356995..ed3f676 100644 --- a/packaging/system-plugin-emulator.spec +++ b/packaging/system-plugin-emulator.spec @@ -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