From 02d4cc6b45c92d728b30affecb06fe8861a55d3a Mon Sep 17 00:00:00 2001 From: "sihoons.yang" Date: Fri, 17 Feb 2017 17:37:40 +0900 Subject: [PATCH] [UTC][Chromium-efl][NON-ACR][Add smack label to resource file] Change-Id: Ie539ba320b446cb1d68badd1be13c3666ca358d6 Signed-off-by: sihoons.yang --- packaging/utc/core-webkit2-tests.spec | 6 +----- scripts_tpk/spec.sh | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/packaging/utc/core-webkit2-tests.spec b/packaging/utc/core-webkit2-tests.spec index 8973b2b59..2781e07c9 100755 --- a/packaging/utc/core-webkit2-tests.spec +++ b/packaging/utc/core-webkit2-tests.spec @@ -88,12 +88,8 @@ mkdir -p %{buildroot}/usr/apps/%{name}/bin #cp templates/external_wrapper.sh %{buildroot}/usr/apps/%{name}/bin %post -chown -R root:root /usr/apps/%{name}/data -chmod -R 777 /usr/apps/%{name}/data -chsmack -a tct-webkit2-core /usr/apps/%{name}/data -chsmack -e tct-webkit2-core /usr/apps/%{name}/data -%postun +%postun %files /usr/apps/%{name}/* diff --git a/scripts_tpk/spec.sh b/scripts_tpk/spec.sh index 0af1cbaaa..8678d6b44 100755 --- a/scripts_tpk/spec.sh +++ b/scripts_tpk/spec.sh @@ -833,8 +833,18 @@ case "$1" in cp res/ewk_context/*.html $APP_DATA_DIR/res/ewk_context/ chown -R 5000:5000 $APP_DATA_DIR chmod -R 777 $APP_DATA_DIR - chsmack -a "User::App::Shared" $APP_DATA_DIR/* - chsmack -e "User::App::Shared" $APP_DATA_DIR/* + chsmack -a "User::App::Shared" $APP_DATA_DIR/res/* + chsmack -e "User::App::Shared" $APP_DATA_DIR/res/* + chsmack -a "User::App::Shared" $APP_DATA_DIR/res/common/* + chsmack -e "User::App::Shared" $APP_DATA_DIR/res/common/* + chsmack -a "User::App::Shared" $APP_DATA_DIR/res/ewk_context/* + chsmack -e "User::App::Shared" $APP_DATA_DIR/res/ewk_context/* + chsmack -a "User::App::Shared" $APP_DATA_DIR/res/ewk_context_menu/* + chsmack -e "User::App::Shared" $APP_DATA_DIR/res/ewk_context_menu/* + chsmack -a "User::App::Shared" $APP_DATA_DIR/res/ewk_view/* + chsmack -e "User::App::Shared" $APP_DATA_DIR/res/ewk_view/* + mkdir -p $DEVICE_PHYSICAL_STORAGE_30/res + mkdir -p $DEVICE_PHYSICAL_STORAGE_30/res mkdir -p $DEVICE_PHYSICAL_STORAGE_30/res mkdir -p $DEVICE_PHYSICAL_STORAGE_30/res/common mkdir -p $DEVICE_PHYSICAL_STORAGE_30/res/ewk_context_menu @@ -860,6 +870,14 @@ case "$1" in chmod -R 777 $DEVICE_PHYSICAL_STORAGE_30/res chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/* chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/* + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/common/* + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/common/* + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/ewk_context/* + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/ewk_context/* + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/ewk_context_menu/* + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/ewk_context_menu/* + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/ewk_view/* + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/ewk_view/* ;; "org.tizen.privilege-info-native-utc") echo "Installing pre-requisites for the package $1" -- 2.34.1