2005-04-20 19:07:16 +00:00
|
|
|
# Copyright (C) 2005 Tresys Technology, LLC
|
|
|
|
|
2005-05-11 19:05:15 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# miscfiles_manage_man_page_cache(domain)
|
|
|
|
#
|
|
|
|
define(`miscfiles_manage_man_page_cache',`
|
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
# FIXME: search var_t dir
|
|
|
|
allow $1 catman_t:dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
|
|
|
|
allow $1 catman_t:file { create ioctl read getattr lock write setattr append link unlink rename };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`miscfiles_manage_man_page_cache_depend',`
|
|
|
|
type catman_t;
|
|
|
|
class dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
|
|
|
|
class file { create ioctl read getattr lock write setattr append link unlink rename };
|
|
|
|
')
|
|
|
|
|
2005-05-05 21:36:53 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# 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 };
|
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# miscfiles_read_localization(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`miscfiles_read_localization',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
# FIXME: $1 read etc_t:lnk_file here
|
|
|
|
# FIXME: $1 search usr_t:dir here
|
2005-05-11 15:46:51 +00:00
|
|
|
|
|
|
|
# why?
|
|
|
|
libraries_read_library_resources($1)
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 locale_t:dir { getattr read search };
|
|
|
|
allow $1 locale_t:lnk_file { getattr read };
|
|
|
|
allow $1 locale_t:file { getattr read };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`miscfiles_read_localization_depend',`
|
|
|
|
type locale_t;
|
|
|
|
class dir { getattr read search };
|
|
|
|
class lnk_file { getattr read };
|
|
|
|
class file { getattr read };
|
|
|
|
')
|
2005-05-05 20:33:35 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# miscfiles_legacy_read_localization(domain)
|
|
|
|
#
|
|
|
|
define(`miscfiles_legacy_read_localization',`
|
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
miscfiles_read_localization($1)
|
|
|
|
allow $1 locale_t:file execute;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`miscfiles_read_localization_depend',`
|
|
|
|
type locale_t;
|
|
|
|
class file execute;
|
|
|
|
')
|
2005-05-11 19:05:15 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# miscfiles_read_man_pages(domain)
|
|
|
|
#
|
|
|
|
define(`miscfiles_read_man_pages',`
|
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
# FIXME: search usr_t dir
|
|
|
|
allow $1 man_t:dir { getattr read search };
|
|
|
|
allow $1 man_t:file { getattr read };
|
|
|
|
allow $1 man_t:lnk_file { getattr read };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`miscfiles_read_man_pages_depend',`
|
|
|
|
type man_t;
|
|
|
|
class dir { getattr read search };
|
|
|
|
class file { getattr read };
|
|
|
|
class lnk_file { getattr read };
|
|
|
|
')
|