From 26ef41a381278d8f0e609218ae458d8802c3c906 Mon Sep 17 00:00:00 2001 From: Corentin Lecouvey Date: Wed, 26 Nov 2014 16:59:01 +0100 Subject: [PATCH] set 'User' smack label to bluetooth vconf keys 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 --- packaging/bluetooth-frwk.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/bluetooth-frwk.spec b/packaging/bluetooth-frwk.spec index 597246a..8a5781f 100644 --- a/packaging/bluetooth-frwk.spec +++ b/packaging/bluetooth-frwk.spec @@ -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 -- 2.7.4