Oreon-Lime-R2/selinux-policy/selinux-policy-bc228bd/selinux-policy-bc228bd0c249a9e4aa3dcf238c2b1bb138943b07/policy/modules/contrib/mediawiki.if

40 lines
950 B
Text

## <summary>Mediawiki policy</summary>
#######################################
## <summary>
## Allow the specified domain to read
## mediawiki tmp files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`mediawiki_read_tmp_files',`
gen_require(`
type mediawiki_tmp_t;
')
files_search_tmp($1)
read_files_pattern($1, mediawiki_tmp_t, mediawiki_tmp_t)
read_lnk_files_pattern($1, mediawiki_tmp_t, mediawiki_tmp_t)
')
#######################################
## <summary>
## Delete mediawiki tmp files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`mediawiki_delete_tmp_files',`
gen_require(`
type mediawiki_tmp_t;
')
delete_files_pattern($1, mediawiki_tmp_t, mediawiki_tmp_t)
')