From 75dcc276c0befedab256dc4fb5e34993e32f9b8e Mon Sep 17 00:00:00 2001 From: Luis Ressel Date: Sun, 14 Oct 2018 12:05:06 +0200 Subject: [PATCH] miscfiles: Label /usr/share/texmf*/fonts/ as fonts_t fontconfig can be configure to use the TeX Live fonts in addition to /usr/share/fonts/. --- policy/modules/system/miscfiles.fc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/miscfiles.fc b/policy/modules/system/miscfiles.fc index 5333e8313..069ce52f5 100644 --- a/policy/modules/system/miscfiles.fc +++ b/policy/modules/system/miscfiles.fc @@ -48,9 +48,12 @@ ifdef(`distro_redhat',` /usr/local/share/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) /usr/share/docbook2X/xslt/man(/.*)? gen_context(system_u:object_r:usr_t,s0) + /usr/share/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) -/usr/share/X11/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) /usr/share/ghostscript/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) +/usr/share/texmf[^/]*/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) +/usr/share/X11/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) + /usr/share/locale(/.*)? gen_context(system_u:object_r:locale_t,s0) /usr/share/X11/locale(/.*)? gen_context(system_u:object_r:locale_t,s0) /usr/share/zoneinfo(/.*)? gen_context(system_u:object_r:locale_t,s0)