?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
## SELinux policy for antivirus programs - amavis, clamd, freshclam and clamscan
######################################
##
## Creates types and rules for a basic
## antivirus domain.
##
##
##
## Domain type.
##
##
#
interface(`antivirus_domain_template',`
gen_require(`
attribute antivirus_domain;
')
typeattribute $1 antivirus_domain;
')
#######################################
##
## Execute a domain transition to run antivirus program.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`antivirus_domtrans',`
gen_require(`
type antivirus_t, antivirus_exec_t;
')
domtrans_pattern($1, antivirus_exec_t, antivirus_t)
')
#######################################
##
## Execute antivirus program without a transition.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_exec',`
gen_require(`
type antivirus_exec_t;
')
can_exec($1, antivirus_exec_t)
')
#######################################
##
## Connect to run antivirus program.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_stream_connect',`
gen_require(`
type antivirus_t, antivirus_db_t, antivirus_var_run_t;
')
files_search_pids($1)
stream_connect_pattern($1, antivirus_var_run_t, antivirus_var_run_t, antivirus_t)
stream_connect_pattern($1, antivirus_db_t, antivirus_db_t, antivirus_t)
')
#######################################
##
## Allow the specified domain to append
## to antivirus log files.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_append_log',`
gen_require(`
type antivirus_log_t;
')
logging_search_logs($1)
allow $1 antivirus_log_t:dir list_dir_perms;
append_files_pattern($1, antivirus_log_t, antivirus_log_t)
')
#######################################
##
## Read antivirus configuration files.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_read_config',`
gen_require(`
type antivirus_conf_t;
')
files_search_etc($1)
allow $1 antivirus_conf_t:file read_file_perms;
')
#######################################
##
## Search antivirus db content directories.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_search_db',`
gen_require(`
type antivirus_db_t;
')
files_search_var_lib($1)
files_search_spool($1)
allow $1 antivirus_db_t:dir search_dir_perms;
')
######################################
##
## Read antivirus db content directories.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_read_db',`
gen_require(`
type antivirus_db_t;
')
files_search_var_lib($1)
files_search_spool($1)
read_files_pattern($1, antivirus_db_t, antivirus_db_t)
read_lnk_files_pattern($1, antivirus_db_t, antivirus_db_t)
')
#####################################
##
## Read and write antivirus db content directories.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_rw_db',`
gen_require(`
type antivirus_db_t;
')
files_search_var_lib($1)
files_search_spool($1)
write_files_pattern($1, antivirus_db_t, antivirus_db_t)
')
####################################
##
## Manage antivirus db content directories.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_manage_db',`
gen_require(`
type antivirus_db_t;
')
files_search_var_lib($1)
files_search_spool($1)
manage_files_pattern($1, antivirus_db_t, antivirus_db_t)
manage_dirs_pattern($1, antivirus_db_t, antivirus_db_t)
')
#######################################
##
## Manage antivirus pid content.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_manage_pid',`
gen_require(`
type antivirus_var_run_t;
')
manage_dirs_pattern($1, antivirus_var_run_t, antivirus_var_run_t)
manage_files_pattern($1, antivirus_var_run_t, antivirus_var_run_t)
')
######################################
##
## Read antivirus state files.
##
##
##
## Domain allowed access.
##
##
#
interface(`antivirus_read_state_clamd',`
gen_require(`
type antivirus_t;
')
kernel_search_proc($1)
ps_process_pattern($1, antivirus_t)
')
#######################################
##
## All of the rules required to administrate
## an antivirus programs environment
##
##
##
## Domain allowed access.
##
##
##
##
## The role to be allowed to manage the clamav domain.
##
##
##
#
interface(`antivirus_admin',`
gen_require(`
attribute antivirus_domain;
type antivirus_t, antivirus_conf_t, antivirus_tmp_t;
type antivirus_log_t, antivirus_db_t, antivirus_var_run_t;
type antivirus_initrc_exec_t;
')
allow $1 antivirus_t:process signal_perms;
ps_process_pattern($1, antivirus_t)
init_labeled_script_domtrans($1, antivirus_initrc_exec_t)
domain_system_change_exemption($1)
role_transition $2 antivirus_initrc_exec_t system_r;
allow $2 system_r;
files_list_etc($1)
admin_pattern($1, antivirus_conf_t)
files_list_var_lib($1)
admin_pattern($1, antivirus_db_t)
logging_list_logs($1)
admin_pattern($1, antivirus_log_t)
files_list_pids($1)
admin_pattern($1, antivirus_var_run_t)
files_list_tmp($1)
admin_pattern($1, antivirus_tmp_t)
')