Sha256: fedae7b8fb9dc5f3e7c4bcad0b3230594edf5920f0d65ba0ac4da452148ba0c7

Contents?: true

Size: 613 Bytes

Versions: 42

Compression:

Stored size: 613 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Plamo

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

42 entries across 42 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/plamo/selinux_spec.rb
serverspec-1.15.0 spec/plamo/selinux_spec.rb
serverspec-1.14.0 spec/plamo/selinux_spec.rb
serverspec-1.13.0 spec/plamo/selinux_spec.rb
serverspec-1.12.0 spec/plamo/selinux_spec.rb
serverspec-1.11.0 spec/plamo/selinux_spec.rb
serverspec-1.10.0 spec/plamo/selinux_spec.rb
serverspec-1.9.1 spec/plamo/selinux_spec.rb
serverspec-1.9.0 spec/plamo/selinux_spec.rb
serverspec-1.8.0 spec/plamo/selinux_spec.rb
serverspec-1.7.1 spec/plamo/selinux_spec.rb
serverspec-1.7.0 spec/plamo/selinux_spec.rb
serverspec-1.6.0 spec/plamo/selinux_spec.rb
serverspec-1.5.0 spec/plamo/selinux_spec.rb
serverspec-1.4.2 spec/plamo/selinux_spec.rb
serverspec-1.4.1 spec/plamo/selinux_spec.rb
serverspec-1.4.0 spec/plamo/selinux_spec.rb
serverspec-1.3.0 spec/plamo/selinux_spec.rb
serverspec-1.2.0 spec/plamo/selinux_spec.rb
serverspec-1.1.0 spec/plamo/selinux_spec.rb