selinux-refpolicy/policy/modules/services/squid.if

134 lines
2.4 KiB
Plaintext
Raw Normal View History

2005-09-02 19:11:07 +00:00
## <summary>Squid caching http proxy server</summary>
########################################
## <summary>
## Execute squid in the squid domain.
## </summary>
## <param name="domain">
## <summary>
2005-09-02 19:11:07 +00:00
## The type of the process performing this action.
## </summary>
2005-09-02 19:11:07 +00:00
## </param>
#
interface(`squid_domtrans',`
gen_require(`
type squid_t, squid_exec_t;
')
2007-03-23 23:24:59 +00:00
corecmd_search_bin($1)
2006-12-12 20:08:08 +00:00
domtrans_pattern($1,squid_exec_t,squid_t)
2005-09-02 19:11:07 +00:00
')
########################################
## <summary>
## Do not audit attempts to search squid cache dirs
## </summary>
## <param name="domain">
## <summary>
## Domain to not audit.
## </summary>
## </param>
## <rolecap/>
#
interface(`squid_dontaudit_search_cache',`
gen_require(`
type squid_cache_t;
')
dontaudit $1 squid_cache_t:dir search_dir_perms;
')
2005-09-02 19:11:07 +00:00
########################################
## <summary>
## Read squid configuration file.
## </summary>
## <param name="domain">
## <summary>
2005-09-02 19:11:07 +00:00
## Domain allowed access.
## </summary>
2005-09-02 19:11:07 +00:00
## </param>
2006-09-06 22:07:25 +00:00
## <rolecap/>
2005-09-02 19:11:07 +00:00
#
interface(`squid_read_config',`
gen_require(`
type squid_conf_t;
')
files_search_etc($1)
read_files_pattern($1, squid_conf_t, squid_conf_t)
2005-09-02 19:11:07 +00:00
')
2005-10-24 21:33:46 +00:00
########################################
## <summary>
## Append squid logs.
## </summary>
## <param name="domain">
## <summary>
2005-10-24 21:33:46 +00:00
## Domain allowed access.
## </summary>
2005-10-24 21:33:46 +00:00
## </param>
2006-09-06 22:07:25 +00:00
## <rolecap/>
2005-10-24 21:33:46 +00:00
#
interface(`squid_read_log',`
gen_require(`
type squid_log_t;
')
logging_search_logs($1)
2006-12-12 20:08:08 +00:00
read_files_pattern($1,squid_log_t,squid_log_t)
2005-10-24 21:33:46 +00:00
')
########################################
## <summary>
## Append squid logs.
## </summary>
## <param name="domain">
## <summary>
2005-10-24 21:33:46 +00:00
## Domain allowed access.
## </summary>
2005-10-24 21:33:46 +00:00
## </param>
#
interface(`squid_append_log',`
gen_require(`
type squid_log_t;
')
logging_search_logs($1)
2006-12-12 20:08:08 +00:00
append_files_pattern($1,squid_log_t,squid_log_t)
2005-10-24 21:33:46 +00:00
')
########################################
## <summary>
## Create, read, write, and delete
## squid logs.
## </summary>
## <param name="domain">
## <summary>
2005-10-24 21:33:46 +00:00
## Domain allowed access.
## </summary>
2005-10-24 21:33:46 +00:00
## </param>
2006-09-06 22:07:25 +00:00
## <rolecap/>
2005-10-24 21:33:46 +00:00
#
interface(`squid_manage_logs',`
gen_require(`
type squid_log_t;
')
logging_search_logs($1)
2006-12-12 20:08:08 +00:00
manage_files_pattern($1,squid_log_t,squid_log_t)
2005-10-24 21:33:46 +00:00
')
2005-09-02 19:11:07 +00:00
########################################
## <summary>
2006-08-15 20:00:58 +00:00
## Use squid services by connecting over TCP. (Deprecated)
2005-09-02 19:11:07 +00:00
## </summary>
## <param name="domain">
## <summary>
2005-09-02 19:11:07 +00:00
## Domain allowed access.
## </summary>
2005-09-02 19:11:07 +00:00
## </param>
#
interface(`squid_use',`
2006-08-15 20:00:58 +00:00
refpolicywarn(`$0($*) has been deprecated.')
2005-09-02 19:11:07 +00:00
')