Last active
May 30, 2023 07:55
-
-
Save dgiebert/4a6aa1397bc68c12c5f34ab056e304d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module selinux-policy-iptables 1.0; | |
require { | |
type cgroup_t; | |
type iptables_t; | |
class dir ioctl; | |
} | |
#============= iptables_t ============== | |
allow iptables_t cgroup_t:dir ioctl; | |
cd /tmp | |
checkmodule -M -m -o selinux-policy-iptables.mod selinux-policy-iptables.te | |
semodule_package -o selinux-policy-iptables.pp -m selinux-policy-iptables.mod | |
semodule -X 300 -i selinux-policy-iptables.pp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment