After executing emulator/prerun.d/model-config.sh,
/etc/config/model-config.xml is labeled as "System". This is mainly
because model-config.sh is executed by systemd(pid:1) that is labeled as
"System". This patch sets the model-config.xml as '_' after
modification.
Change-Id: Ief6adaed73c70c0703dde74aa242d55fd2d6ccdf
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
ExecStartPre=/bin/sh -c '. /etc/emulator/prerun'
# W/A for alarm-service
ExecStart=/bin/touch /dev/rtc1
+ExecStartPost=/usr/bin/chsmack -a "_" /etc/config/model-config.xml
[Install]
WantedBy=emulator_preinit.target