-t /opt/var/cache/fontconfig - - - - security.SMACK64="User::App::Shared"
-t /opt/var/cache/fontconfig - - - - security.SMACK64TRANSMUTE="TRUE"
d /opt/share/fonts 0755 app_fw users
t /opt/share/fonts - - - - security.SMACK64="User::App::Shared"
t /opt/share/fonts - - - - security.SMACK64TRANSMUTE="TRUE"
mkdir -p %{TZ_SYS_RO_SHARE}/fallback_fonts
mkdir -p %{TZ_SYS_RO_SHARE}/app_fonts
+mkdir -p %{TZ_SYS_VAR}/cache/fontconfig
+chown root:root %{TZ_SYS_VAR}/cache/fontconfig
+chmod 755 %{TZ_SYS_VAR}/cache/fontconfig
+chsmack -t %{TZ_SYS_VAR}/cache/fontconfig
+chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig
+
# Skip making fontconfig cache folder for users. (/opt/home/app/.cache)
# The path will be changed according to a name of user.
#rm -rf %{TZ_USER_CACHE}/fontconfig
# 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
-chsmack -t %{TZ_SYS_VAR}/cache/fontconfig
-chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig
-chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig/*
fi
%postun -p /sbin/ldconfig