Skip to content

Instantly share code, notes, and snippets.

@dgiebert
Last active May 30, 2023 07:55
Show Gist options
  • Save dgiebert/4a6aa1397bc68c12c5f34ab056e304d2 to your computer and use it in GitHub Desktop.
Save dgiebert/4a6aa1397bc68c12c5f34ab056e304d2 to your computer and use it in GitHub Desktop.
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