Skip to contentSkip to conversation

miscfiles: Label /usr/share/texmf*/fonts/ as fonts_t

PATCH In review Luis Ressel 2 participants 2 messages Oct 14, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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(-)
policy/modules/system/miscfiles.fc +4 -1
index 5333e831..069ce52f 100644
@@ -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)
Signature · 1 line
2.19.1
#1 lore raw
Quoted 14 lines · Luis Ressel

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(-)
policy/modules/system/miscfiles.fc +0 -0
index 5333e831..069ce52f 100644
@@ -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)

policy/modules/system/miscfiles.fc ifdef(`distro_redhat',` · line 59

Quoted 10 lines
policy/modules/system/miscfiles.fc +4 -1
+
  /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)

Merged.

Signature · 1 line
Chris PeBenito