set 'User' smack label to bluetooth vconf keys 97/30897/1 accepted/tizen/common/20141127.143440 accepted/tizen/ivi/20141202.021016 accepted/tizen/mobile/20141201.013830 submit/tizen/20141127.110445
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Wed, 26 Nov 2014 15:59:01 +0000 (16:59 +0100)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Wed, 26 Nov 2014 15:59:11 +0000 (16:59 +0100)
As bt-service is run as a user (app or guest), vconf keys needs to
be labelled as 'User' in order to be checked/modified by bt-service.

Change-Id: Ifcd44b0855ca4939fc8f2c5ce5d6c6a8eaedd39a
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
packaging/bluetooth-frwk.spec

index 597246a..8a5781f 100644 (file)
@@ -133,6 +133,12 @@ vconftool set -tf int file/private/bt-service/flight_mode_deactivated "0" -g 652
 vconftool set -tf string memory/bluetooth/sco_headset_name "" -g 6520 -i
 vconftool set -tf int memory/bluetooth/device "0" -g 6520 -i
 vconftool set -tf int memory/bluetooth/btsco "0" -g 6520 -i
+# set 'User' smack label to vconf keys in order to allow bt-service to access them.
+chsmack -a 'User' %TZ_SYS_CONFIG/db/bluetooth/status
+chsmack -a 'User' %TZ_SYS_CONFIG/file/private/bt-service/flight_mode_deactivated
+chsmack -a 'User' %TZ_SYS_CONFIG/memory_init/memory/bluetooth/sco_headset_name
+chsmack -a 'User' %TZ_SYS_CONFIG/memory_init/memory/bluetooth/device
+chsmack -a 'User' %TZ_SYS_CONFIG/memory_init/memory/bluetooth/btsco
 
 %postun -p /sbin/ldconfig