Chris PeBenito 020cbe
## <summary>System log analyzer and reporter</summary>
Chris PeBenito 020cbe
Chris PeBenito 020cbe
########################################
Chris PeBenito 020cbe
## <summary>
Chris PeBenito 020cbe
##	Read logwatch temporary files.
Chris PeBenito 020cbe
## </summary>
Chris PeBenito 020cbe
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 020cbe
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 020cbe
## </param>
Chris PeBenito 020cbe
#
Chris PeBenito 020cbe
interface(`logwatch_read_tmp_files',`
Chris PeBenito 020cbe
	gen_require(`
Chris PeBenito 020cbe
		type logwatch_tmp_t;
Chris PeBenito 020cbe
	')
Chris PeBenito 020cbe
Chris PeBenito 020cbe
	files_search_tmp($1)
Chris PeBenito c0868a
	allow $1 logwatch_tmp_t:file read_file_perms;
Chris PeBenito 020cbe
')
Chris PeBenito 73ca55
Chris PeBenito 73ca55
########################################
Chris PeBenito 73ca55
## <summary>
Chris PeBenito 73ca55
##	Search logwatch cache directory.
Chris PeBenito 73ca55
## </summary>
Chris PeBenito 73ca55
## <param name="domain">
Chris PeBenito 73ca55
##	<summary>
Chris PeBenito 73ca55
##	Domain allowed access.
Chris PeBenito 73ca55
##	</summary>
Chris PeBenito 73ca55
## </param>
Chris PeBenito 73ca55
#
Chris PeBenito 73ca55
interface(`logwatch_search_cache_dir',`
Chris PeBenito 73ca55
	gen_require(`
Chris PeBenito 73ca55
		type logwatch_cache_t;
Chris PeBenito 73ca55
	')
Chris PeBenito 73ca55
Chris PeBenito c0868a
	allow $1 logwatch_cache_t:dir search_dir_perms;
Chris PeBenito 73ca55
')