# # Authors: Justin Smith # # # Rules for the iptables_t domain. # type iptables_t, domain, privlog; type iptables_exec_t, file_type, sysadmfile, exec_type; type iptables_var_run_t, file_type, sysadmfile, pidfile; domain_auto_trans(iptables_t, insmod_exec_t, insmod_t) domain_auto_trans(iptables_t, ifconfig_exec_t, ifconfig_t) file_type_auto_trans(iptables_t, var_run_t, iptables_var_run_t) # Inherit and use descriptors from init. allow iptables_t init_t:fd inherit_fd_perms; allow iptables_t bin_t:file { execute execute_no_trans }; allow iptables_t iptables_exec_t:file { execute_no_trans }; allow iptables_t iptables_t:capability { net_admin net_raw }; allow iptables_t iptables_t:rawip_socket { create setopt getopt };