semodule is the tool used to manage SELinux policy modules, including installing, upgrading, listing and removing modules. semodule may also be used to force a rebuild of policy from the module store and/or to force a reload of policy without performing any other transaction. semodule acts on module packages created by semodule_package. Conventionally, these files have a .pp suffix (policy package), although this is not mandated in any way.
# Install or replace a base policy package. $ semodule -b base.pp # Install or replace a non-base policy package. $ semodule -i httpd.pp # List non-base modules. $ semodule -l # Install or replace all non-base modules in the current directory. $ semodule -i *.pp # Install or replace all modules in the current directory. $ ls *.pp | grep -Ev "base.pp|enableaudit.pp" | xargs /usr/sbin/semodule -b base.pp -i
This manual page was written by Dan Walsh <firstname.lastname@example.org>. The program was written by Karl MacMillan <email@example.com>, Joshua Brindle <firstname.lastname@example.org>, Jason Tang <email@example.com>