From ec81ecb30c9d5dbb1363474c890b665fc1572682 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Thu, 5 May 2005 21:36:53 +0000 Subject: [PATCH] add read fonts --- refpolicy/policy/modules/system/miscfiles.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/refpolicy/policy/modules/system/miscfiles.if b/refpolicy/policy/modules/system/miscfiles.if index dc37d08c..a9755a72 100644 --- a/refpolicy/policy/modules/system/miscfiles.if +++ b/refpolicy/policy/modules/system/miscfiles.if @@ -1,5 +1,24 @@ # Copyright (C) 2005 Tresys Technology, LLC +######################################## +# +# miscfiles_read_fonts(domain) +# +define(`miscfiles_read_fonts',` +requires_block_template(`$0'_depend) +# FIXME: search usr_t dir +# FIXME: search lib_t dir +# cjp: fonts can be in either of the above dirs +allow $1 fonts_t:dir { getattr read search }; +allow $1 fonts_t:file { getattr read }; +') + +define(`miscfiles_read_fonts_depend',` +type fonts_t; +class dir { getattr read search }; +class file { getattr read }; +') + ######################################## # # miscfiles_read_localization(domain)