Merge "Revert smack label changes and change owner of fontconfig cache files" into... accepted/tizen/common/20160921.162913 accepted/tizen/ivi/20160922.042141 accepted/tizen/mobile/20160922.042230 accepted/tizen/tv/20160922.042033 accepted/tizen/wearable/20160922.042040 submit/tizen/20160921.091905
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 20 Sep 2016 07:49:12 +0000 (00:49 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 20 Sep 2016 07:49:12 +0000 (00:49 -0700)
packaging/fontconfig.conf
packaging/fontconfig.spec

index f48c663..1661cc5 100644 (file)
@@ -1,3 +1,3 @@
-d      /opt/var/cache/fontconfig       1774    display users
-t      /opt/var/cache/fontconfig       -       -       -       -       security.SMACK64="_"
+d      /opt/var/cache/fontconfig       1774    owner   users
+t      /opt/var/cache/fontconfig       -       -       -       -       security.SMACK64="User::App::Shared"
 t      /opt/var/cache/fontconfig       -       -       -       -       security.SMACK64TRANSMUTE="TRUE"
index 7f0ef71..6f9fa3d 100644 (file)
@@ -120,6 +120,8 @@ mkdir -p %{TZ_SYS_RO_SHARE}/app_fonts
 # The HOME setting is to avoid problems if HOME hasn't been reset
 if [ -x %{TZ_SYS_BIN}/fc-cache ] && %{TZ_SYS_BIN}/fc-cache --version 2>&1 | grep -q %{version} ; then
 fc-cache -rf --system-only
+chown -R owner:users %{TZ_SYS_VAR}/cache/fontconfig
+chmod -R 664 %{TZ_SYS_VAR}/cache/fontconfig
 fi
 
 %postun -p /sbin/ldconfig