Sha256: c478340cbd441ab928e1a1828cd93a94f9ce43a0e6613fdb0e22807b090089d7

Contents?: true

Size: 615 Bytes

Versions: 28

Compression:

Stored size: 615 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::RedHat

describe selinux do
  it { should be_enforcing }
  its(:command) { should eq "getenforce | grep -i -- enforcing && grep -i -- ^SELINUX=enforcing$ /etc/selinux/config" }
end

describe selinux do
  it { should be_permissive }
  its(:command) { should eq "getenforce | grep -i -- permissive && grep -i -- ^SELINUX=permissive$ /etc/selinux/config" }
end

describe selinux do
  it { should be_disabled }
  its(:command) { should eq "test ! -f /etc/selinux/config || (getenforce | grep -i -- disabled && grep -i -- ^SELINUX=disabled$ /etc/selinux/config)" }
end

Version data entries

28 entries across 26 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/redhat/selinux_spec.rb
serverspec-0.11.4 spec/redhat/selinux_spec.rb
serverspec-0.11.3 spec/redhat/selinux_spec.rb
serverspec-0.11.2 spec/redhat/selinux_spec.rb
serverspec-0.9.4 spec/redhat/selinux_spec.rb
serverspec-0.9.3 spec/redhat/selinux_spec.rb
serverspec-0.9.3 spec/aix/selinux_spec.rb
serverspec-0.9.2 spec/aix/selinux_spec.rb
serverspec-0.9.2 spec/redhat/selinux_spec.rb
serverspec-0.9.1 spec/redhat/selinux_spec.rb
serverspec-0.9.0 spec/redhat/selinux_spec.rb
serverspec-0.8.1 spec/redhat/selinux_spec.rb
serverspec-0.8.0 spec/redhat/selinux_spec.rb
serverspec-0.7.13 spec/redhat/selinux_spec.rb
serverspec-0.7.12 spec/redhat/selinux_spec.rb
serverspec-0.7.11 spec/redhat/selinux_spec.rb
serverspec-0.7.10 spec/redhat/selinux_spec.rb
serverspec-0.7.9 spec/redhat/selinux_spec.rb
serverspec-0.7.8 spec/redhat/selinux_spec.rb
serverspec-0.7.7 spec/redhat/selinux_spec.rb