Sha256: 5bd608988f66f824f3388714cb9dd64ccfcffebd5fa2afdd75a309c39f3b959a

Contents?: true

Size: 580 Bytes

Versions: 8

Compression:

Stored size: 580 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 "getenforce | grep -i -- disabled && grep -i -- ^SELINUX=disabled$ /etc/selinux/config" }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
serverspec-0.6.28 spec/redhat/selinux_spec.rb
serverspec-0.6.27 spec/redhat/selinux_spec.rb
serverspec-0.6.26 spec/redhat/selinux_spec.rb
serverspec-0.6.25 spec/redhat/selinux_spec.rb
serverspec-0.6.24 spec/redhat/selinux_spec.rb
serverspec-0.6.23 spec/redhat/selinux_spec.rb
serverspec-0.6.22 spec/redhat/selinux_spec.rb
serverspec-0.6.21 spec/redhat/selinux_spec.rb