## ## Miscelaneous files. ######################################## ## ## ## Allow process to create files and dirs in /var/cache/man ## and /var/catman/ ## ## ## ... ## ## ## Type type of the process performing this action. ## ## # define(`miscfiles_rw_man_cache',` gen_require(`$0'_depend) # FIXME: search var_t dir allow $1 catman_t:dir create_dir_perms; allow $1 catman_t:file create_file_perms; ') define(`miscfiles_rw_man_cache_depend',` type catman_t; class dir create_dir_perms; class file create_file_perms; ') ######################################## ## ## ## Allow process to read fonts files ## ## ## ... ## ## ## Type type of the process performing this action. ## ## # define(`miscfiles_read_fonts',` gen_require(`$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 r_dir_perms; allow $1 fonts_t:file r_file_perms; ') define(`miscfiles_read_fonts_depend',` type fonts_t; class dir r_dir_perms; class file r_file_perms; ') ######################################## ## ## ## Allow process to read localization info ## ## ## ... ## ## ## Type type of the process performing this action. ## ## # define(`miscfiles_read_localization',` gen_require(`$0'_depend) # FIXME: $1 read etc_t:lnk_file here # FIXME: $1 search usr_t:dir here allow $1 locale_t:dir r_dir_perms; allow $1 locale_t:lnk_file r_file_perms; allow $1 locale_t:file r_file_perms; # why? libs_read_lib($1) ') define(`miscfiles_read_localization_depend',` type locale_t; class dir r_dir_perms; class lnk_file r_file_perms; class file r_file_perms; ') ######################################## ## ## ## Allow process to read legacy time localization info ## ## ## ... ## ## ## Type type of the process performing this action. ## ## # define(`miscfiles_legacy_read_localization',` gen_require(`$0'_depend) miscfiles_read_localization($1) allow $1 locale_t:file execute; ') define(`miscfiles_read_localization_depend',` type locale_t; class file execute; ') ######################################## ## ## ## Allow process to read manpages ## ## ## ... ## ## ## Type type of the process performing this action. ## ## # define(`miscfiles_read_man_pages',` gen_require(`$0'_depend) # FIXME: search usr_t dir allow $1 man_t:dir r_dir_perms; allow $1 man_t:file r_file_perms; allow $1 man_t:lnk_file r_file_perms; ') define(`miscfiles_read_man_pages_depend',` type man_t; class dir r_dir_perms; class file r_file_perms; class lnk_file r_file_perms; ') ##