userdomain: man-db needs to map its 'index.db' cache

This commit is contained in:
Luis Ressel 2017-09-12 09:16:06 +02:00 committed by Chris PeBenito
parent 870bb5c789
commit ec27acdf1f
2 changed files with 20 additions and 0 deletions

View File

@ -556,6 +556,24 @@ interface(`miscfiles_read_man_cache',`
allow $1 man_cache_t:lnk_file read_lnk_file_perms;
')
########################################
## <summary>
## Map man cache content.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`miscfiles_map_man_cache',`
gen_require(`
type man_cache_t;
')
allow $1 man_cache_t:file map;
')
########################################
## <summary>
## Create, read, write, and delete

View File

@ -859,6 +859,8 @@ template(`userdom_login_user_template', `
logging_dontaudit_getattr_all_logs($1_t)
miscfiles_read_man_pages($1_t)
# map is needed for man-dbs apropos program
miscfiles_map_man_cache($1_t)
# for running TeX programs
miscfiles_read_tetex_data($1_t)
miscfiles_exec_tetex_data($1_t)