SELinux-Refpolicy Archive on lore.kernel.org
 help / Atom feed
* [PATCH] miscfiles: Label /usr/share/texmf*/fonts/ as fonts_t
@ 2018-10-14 10:05 Luis Ressel
  2018-10-14 17:55 ` Chris PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Ressel @ 2018-10-14 10:05 UTC (permalink / raw)
  To: selinux-refpolicy

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 5333e831..069ce52f 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)
-- 
2.19.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] miscfiles: Label /usr/share/texmf*/fonts/ as fonts_t
  2018-10-14 10:05 [PATCH] miscfiles: Label /usr/share/texmf*/fonts/ as fonts_t Luis Ressel
@ 2018-10-14 17:55 ` Chris PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Chris PeBenito @ 2018-10-14 17:55 UTC (permalink / raw)
  To: Luis Ressel, selinux-refpolicy

On 10/14/2018 06:05 AM, Luis Ressel wrote:
> 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 5333e831..069ce52f 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)

Merged.

-- 
Chris PeBenito

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-14 10:05 [PATCH] miscfiles: Label /usr/share/texmf*/fonts/ as fonts_t Luis Ressel
2018-10-14 17:55 ` Chris PeBenito

SELinux-Refpolicy Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux-refpolicy/0 selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ https://lore.kernel.org/selinux-refpolicy \
		selinux-refpolicy@vger.kernel.org selinux-refpolicy@archiver.kernel.org
	public-inbox-index selinux-refpolicy


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux-refpolicy


AGPL code for this site: git clone https://public-inbox.org/ public-inbox