smack: Set model-config.xml as '_' after modification 54/49054/2 accepted/tizen/mobile/20151008.052000 accepted/tizen/tv/20151008.052012 accepted/tizen/wearable/20151008.052036 submit/tizen/20151008.025001
authorSangjung Woo <sangjung.woo@samsung.com>
Tue, 6 Oct 2015 02:54:01 +0000 (11:54 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Tue, 6 Oct 2015 10:17:25 +0000 (19:17 +0900)
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>
filesystem/usr/lib/systemd/system/emul-common-preinit.service

index dd5e101..9c2683b 100644 (file)
@@ -13,6 +13,7 @@ Type=oneshot
 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