Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 24280a
# miscfiles_manage_man_page_cache(domain)
Chris PeBenito 24280a
#
Chris PeBenito 24280a
define(`miscfiles_manage_man_page_cache',`
Chris PeBenito 24280a
requires_block_template(`$0'_depend)
Chris PeBenito 24280a
# FIXME: search var_t dir
Chris PeBenito 24280a
allow $1 catman_t:dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
Chris PeBenito 24280a
allow $1 catman_t:file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito 24280a
')
Chris PeBenito 24280a
Chris PeBenito 24280a
define(`miscfiles_manage_man_page_cache_depend',`
Chris PeBenito 24280a
type catman_t;
Chris PeBenito 24280a
class dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
Chris PeBenito 24280a
class file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito 24280a
')
Chris PeBenito 24280a
Chris PeBenito 24280a
########################################
Chris PeBenito 24280a
#
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 118186
Chris PeBenito 118186
# why?
Chris PeBenito 118186
libraries_read_library_resources($1)
Chris PeBenito 118186
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
')
Chris PeBenito 24280a
Chris PeBenito 24280a
########################################
Chris PeBenito 24280a
#
Chris PeBenito 24280a
# miscfiles_read_man_pages(domain)
Chris PeBenito 24280a
#
Chris PeBenito 24280a
define(`miscfiles_read_man_pages',`
Chris PeBenito 24280a
requires_block_template(`$0'_depend)
Chris PeBenito 24280a
# FIXME: search usr_t dir
Chris PeBenito 24280a
allow $1 man_t:dir { getattr read search };
Chris PeBenito 24280a
allow $1 man_t:file { getattr read };
Chris PeBenito 24280a
allow $1 man_t:lnk_file { getattr read };
Chris PeBenito 24280a
')
Chris PeBenito 24280a
Chris PeBenito 24280a
define(`miscfiles_read_man_pages_depend',`
Chris PeBenito 24280a
type man_t;
Chris PeBenito 24280a
class dir { getattr read search };
Chris PeBenito 24280a
class file { getattr read };
Chris PeBenito 24280a
class lnk_file { getattr read };
Chris PeBenito 24280a
')