Cookbooks
selinux
documentation
Selinux Permissive

Back to resource list

selinux_permissive

Allows some types to misbehave without stopping them. Not as good as specific policies, but better than disabling SELinux entirely.

This does not set the SELinux state to permissive! Use selinux_state for that.

Actions

ActionDescription
:add(Default) Adds a permissive, unless already set.
:deleteRemoves a permissive, if set.

Properties

NameTypeDefaultDescription
contextStringResource nameName of the context to disable SELinux for.

Examples

# Disable enforcement on Apache
selinux_permissive 'httpd_t' do
  notifies :restart, 'service[httpd]'
end