22.27.103. salt.states.selinux

22.27.103.1. Management of SELinux rules

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

Note

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

name
The name of the boolean to set
value
The value to set on the boolean
persist
Defaults to False, set persist to true to make the boolean apply on a reboot
salt.states.selinux.mode(name)

Verifies the mode SELinux is running in, can be set to enforcing or permissive

name
The mode to run SELinux in, permissive or enforcing

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Table Of Contents

Previous topic

22.27.102. salt.states.schedule

Next topic

22.27.104. salt.states.serverdensity_device

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.