Revert smack label changes and change owner of fontconfig cache files 45/87745/2
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 9 Sep 2016 08:29:00 +0000 (17:29 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 20 Sep 2016 02:26:15 +0000 (11:26 +0900)
Change-Id: I39d399c1955d465036c1c8bf381d14c06bf1610a

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 b8f8e23..2658894 100644 (file)
@@ -116,6 +116,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