Manage SELinux modules
It's possible to maintain SELinux modules using selinux_modules
variable which would contain a list of dictionaries, e.g.:
selinux_modules:
- { path: 'localmodule.cil', priority: '350', state: 'enabled' }
- { name: 'unconfineduser', priority: '100', state: 'disabled' }
- { name: 'unconfineduser', priority: '100', state: 'enabled' }
- { name: 'localmodule', priority: '350', state: 'absent' }
path
: filename of a module to be installed, used for installing new modulesname
: module name, used for enabling disabled modules, disabling enabled modules, removing modulespriority
: SELinux module priority, default is "400". "100" is used for modules installed from selinux-policy packages, "200" for other modules installed from 3rd party rpms, "300" is used by SETroubleshootstate
:enabled
: install or enable moduledisabled
: disable moduleabsent
: remove module