[UTC][Chromium-efl][NON-ACR][Add smack label to resource file]
authorsihoons.yang <sihoons.yang@samsung.com>
Fri, 17 Feb 2017 08:37:40 +0000 (17:37 +0900)
committersihoon Yang <sihoons.yang@samsung.com>
Fri, 17 Feb 2017 08:54:54 +0000 (00:54 -0800)
Change-Id: Ie539ba320b446cb1d68badd1be13c3666ca358d6
Signed-off-by: sihoons.yang <sihoons.yang@samsung.com>
packaging/utc/core-webkit2-tests.spec
scripts_tpk/spec.sh

index 8973b2b59bf621b303695ed159ab27776a4a6ec0..2781e07c91847f2039a0c40a96dea61ffc0df6c6 100755 (executable)
@@ -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}/*
index 0af1cbaaa99af58c1f7cc2a3b9db5f0626311b73..8678d6b44a0f55c735fd612ee834220c309daf05 100755 (executable)
@@ -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"