If SELinux is available for the running system, the mode can be managed and booleans can be set.
enforcing:
selinux.mode
samba_create_home_dirs:
selinux.boolean:
- value: True
- persist: True
nginx:
selinux.module:
- enabled: False
注解
Use of these states require that the selinux
execution module is available.
salt.states.selinux.
boolean
(name, value, persist=False)¶Set up an SELinux boolean
salt.states.selinux.
mode
(name)¶Verifies the mode SELinux is running in, can be set to enforcing, permissive, or disabled
- Note: A change to or from disabled mode requires a system reboot.
- You will need to perform this yourself.
salt.states.selinux.
module
(name, module_state='Enabled', version='any')¶Enable/Disable and optionally force a specific version for an SELinux module
2016.3.0 新版功能.