serverbee.selinux_custom_module
SELinux Custom Module Role
This role installs custom SELinux modules and sets SELinux to Enforcing mode.
Variables
General
selinux_config_dir
: [default:/etc/selinux
]: The folder where all SELinux module files from this role will be stored.
SELinux Custom Modules Settings
selinux_custom_modules
: [default:{}
]: Definitions of SELinux modules.selinux_custom_modules.key
: [required]: The name of the module (e.g.first-custom-module:
).selinux_custom_modules.key.value
: [required]: The code for the custom SELinux modules.
Dependencies
None
Example
---
- host: localhost
roles:
- serverbee.selinux_custom_module
vars:
selinux_custom_modules:
first-custom-module: |
module first-custom-module 1.0;
require {
type myapp_t;
type myapp_port_t;
class tcp_socket name_bind;
}
allow myapp_t myapp_port_t:tcp_socket name_bind;
License
GPLv3 license
Author Information
Bohdan Saienko