Skip to content

Commit

Permalink
Fix iptables to be able to run in unconfined role
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan authored and lsm5 committed May 11, 2023
1 parent c9cac6c commit 4aa3fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion container.te
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,10 @@ optional_policy(`
')

optional_policy(`
iptables_domtrans(container_runtime_domain)
gen_require(`
role unconfined_r;
')
iptables_run(container_runtime_domain, unconfined_r)

container_read_pid_files(iptables_t)
container_read_state(iptables_t)
Expand Down

0 comments on commit 4aa3fc7

Please sign in to comment.