2025-08-26 21:40:13 +02:00
|
|
|
# deployment/fail2ban-curl-allow.te
|
|
|
|
|
module fail2ban-curl-allow 1.1;
|
2025-01-29 23:49:04 +01:00
|
|
|
|
|
|
|
|
require {
|
2025-08-26 21:40:13 +02:00
|
|
|
type fail2ban_t;
|
|
|
|
|
type http_cache_port_t;
|
|
|
|
|
type var_run_t;
|
|
|
|
|
type etc_t;
|
|
|
|
|
type var_log_t;
|
|
|
|
|
class tcp_socket name_connect;
|
|
|
|
|
class file { read write open execute };
|
|
|
|
|
class dir { search read };
|
2025-01-29 23:49:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#============= fail2ban_t ==============
|
|
|
|
|
allow fail2ban_t http_cache_port_t:tcp_socket name_connect;
|
2025-08-26 21:40:13 +02:00
|
|
|
|
|
|
|
|
# Zusätzliche benötigte Berechtigungen
|
|
|
|
|
allow fail2ban_t etc_t:file { read open };
|
|
|
|
|
allow fail2ban_t var_log_t:file { read open };
|
|
|
|
|
allow fail2ban_t var_run_t:file { read write open };
|
|
|
|
|
allow fail2ban_t var_run_t:dir search;
|
|
|
|
|
allow fail2ban_t etc_t:dir search;
|