Blame policy/modules/services/bitlbee.if
|
Chris PeBenito |
8242f5 |
## <summary>Bitlbee service</summary>
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
8242f5 |
########################################
|
|
Chris PeBenito |
8242f5 |
## <summary>
|
|
Chris PeBenito |
8242f5 |
## Read bitlbee configuration files
|
|
Chris PeBenito |
8242f5 |
## </summary>
|
|
Chris PeBenito |
8242f5 |
## <param name="domain">
|
|
Chris PeBenito |
8242f5 |
## <summary>
|
|
Chris PeBenito |
8242f5 |
## Domain allowed accesss.
|
|
Chris PeBenito |
8242f5 |
## </summary>
|
|
Chris PeBenito |
8242f5 |
## </param>
|
|
Chris PeBenito |
8242f5 |
#
|
|
Chris PeBenito |
8242f5 |
interface(`bitlbee_read_config',`
|
|
Chris PeBenito |
8242f5 |
gen_require(`
|
|
Chris PeBenito |
8242f5 |
type bitlbee_conf_t;
|
|
Chris PeBenito |
8242f5 |
')
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
8242f5 |
files_search_etc($1)
|
|
Chris PeBenito |
82d277 |
allow $1 bitlbee_conf_t:dir list_dir_perms;
|
|
Chris PeBenito |
82d277 |
allow $1 bitlbee_conf_t:file read_file_perms;
|
|
Chris PeBenito |
8242f5 |
')
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
e87221 |
########################################
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## All of the rules required to administrate
|
|
Chris PeBenito |
e87221 |
## an bitlbee environment
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## <param name="domain">
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## Domain allowed access.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <param name="role">
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## The role to be allowed to manage the bitlbee domain.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <rolecap/>
|
|
Chris PeBenito |
e87221 |
#
|
|
Chris PeBenito |
e87221 |
interface(`bitlbee_admin',`
|
|
Chris PeBenito |
e87221 |
gen_require(`
|
|
Chris PeBenito |
e87221 |
type bitlbee_t, bitlbee_conf_t, bitlbee_var_t;
|
|
Chris PeBenito |
e87221 |
type bitlbee_initrc_exec_t;
|
|
Chris PeBenito |
e87221 |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
allow $1 bitlbee_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
e87221 |
ps_process_pattern($1, bitlbee_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
init_labeled_script_domtrans($1, bitlbee_initrc_exec_t)
|
|
Chris PeBenito |
e87221 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
e87221 |
role_transition $2 bitlbee_initrc_exec_t system_r;
|
|
Chris PeBenito |
e87221 |
allow $2 system_r;
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_etc($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, bitlbee_conf_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_var($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, bitlbee_var_t)
|
|
Chris PeBenito |
e87221 |
')
|