|
Chris PeBenito |
e181fe |
# Copyright (C) 2005 Tresys Technology, LLC
|
|
Chris PeBenito |
e181fe |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
ec81ec |
# miscfiles_read_fonts(domain)
|
|
Chris PeBenito |
ec81ec |
#
|
|
Chris PeBenito |
ec81ec |
define(`miscfiles_read_fonts',`
|
|
Chris PeBenito |
ec81ec |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
ec81ec |
# FIXME: search usr_t dir
|
|
Chris PeBenito |
ec81ec |
# FIXME: search lib_t dir
|
|
Chris PeBenito |
ec81ec |
# cjp: fonts can be in either of the above dirs
|
|
Chris PeBenito |
ec81ec |
allow $1 fonts_t:dir { getattr read search };
|
|
Chris PeBenito |
ec81ec |
allow $1 fonts_t:file { getattr read };
|
|
Chris PeBenito |
ec81ec |
')
|
|
Chris PeBenito |
ec81ec |
|
|
Chris PeBenito |
ec81ec |
define(`miscfiles_read_fonts_depend',`
|
|
Chris PeBenito |
ec81ec |
type fonts_t;
|
|
Chris PeBenito |
ec81ec |
class dir { getattr read search };
|
|
Chris PeBenito |
ec81ec |
class file { getattr read };
|
|
Chris PeBenito |
ec81ec |
')
|
|
Chris PeBenito |
ec81ec |
|
|
Chris PeBenito |
ec81ec |
########################################
|
|
Chris PeBenito |
ec81ec |
#
|
|
Chris PeBenito |
bd202f |
# miscfiles_read_localization(domain)
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`miscfiles_read_localization',`
|
|
Chris PeBenito |
bd202f |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
b4cd15 |
# FIXME: $1 read etc_t:lnk_file here
|
|
Chris PeBenito |
b4cd15 |
# FIXME: $1 search usr_t:dir here
|
|
Chris PeBenito |
b4cd15 |
# FIXME: $1 read lib_t:file(?)
|
|
Chris PeBenito |
b4cd15 |
allow $1 locale_t:dir { getattr read search };
|
|
Chris PeBenito |
b4cd15 |
allow $1 locale_t:lnk_file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
allow $1 locale_t:file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`miscfiles_read_localization_depend',`
|
|
Chris PeBenito |
b4cd15 |
type locale_t;
|
|
Chris PeBenito |
b4cd15 |
class dir { getattr read search };
|
|
Chris PeBenito |
b4cd15 |
class lnk_file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
class file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
0fef98 |
|
|
Chris PeBenito |
0fef98 |
########################################
|
|
Chris PeBenito |
0fef98 |
#
|
|
Chris PeBenito |
0fef98 |
# miscfiles_legacy_read_localization(domain)
|
|
Chris PeBenito |
0fef98 |
#
|
|
Chris PeBenito |
0fef98 |
define(`miscfiles_legacy_read_localization',`
|
|
Chris PeBenito |
0fef98 |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0fef98 |
miscfiles_read_localization($1)
|
|
Chris PeBenito |
0fef98 |
allow $1 locale_t:file execute;
|
|
Chris PeBenito |
0fef98 |
')
|
|
Chris PeBenito |
0fef98 |
|
|
Chris PeBenito |
0fef98 |
define(`miscfiles_read_localization_depend',`
|
|
Chris PeBenito |
0fef98 |
type locale_t;
|
|
Chris PeBenito |
0fef98 |
class file execute;
|
|
Chris PeBenito |
0fef98 |
')
|