diff --git a/policy/modules/system/iptables.if b/policy/modules/system/iptables.if index 725a6a3da..a36277a6f 100644 --- a/policy/modules/system/iptables.if +++ b/policy/modules/system/iptables.if @@ -183,6 +183,25 @@ interface(`iptables_dontaudit_read_pids',` dontaudit $1 iptables_runtime_t:file read; ') +######################################## +## +## Allow specified domain to start and stop iptables service +## +## +## +## Domain allowed access. +## +## +# +interface(`iptables_startstop',` + gen_require(` + type iptables_unit_t; + class service { start stop }; + ') + + allow $1 iptables_unit_t:service { start stop }; +') + ######################################## ## ## Allow specified domain to get status of iptables service