Sha256: 61c84d7ed22061865edaf5ce32e6ee1b08ce36e35f525beeaa0a9ef254679e9c

Contents?: true

Size: 625 Bytes

Versions: 20

Compression:

Stored size: 625 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'Debian'
end

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

20 entries across 20 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/debian/selinux_spec.rb
serverspec-0.11.0 spec/debian/selinux_spec.rb
serverspec-0.10.13 spec/debian/selinux_spec.rb
serverspec-0.10.12 spec/debian/selinux_spec.rb
serverspec-0.10.11 spec/debian/selinux_spec.rb
serverspec-0.10.10 spec/debian/selinux_spec.rb
serverspec-0.10.9 spec/debian/selinux_spec.rb
serverspec-0.10.8 spec/debian/selinux_spec.rb
serverspec-0.10.7 spec/debian/selinux_spec.rb
serverspec-0.10.6 spec/debian/selinux_spec.rb
serverspec-0.10.5 spec/debian/selinux_spec.rb
serverspec-0.10.4 spec/debian/selinux_spec.rb
serverspec-0.10.3 spec/debian/selinux_spec.rb
serverspec-0.10.2 spec/debian/selinux_spec.rb
serverspec-0.10.1 spec/debian/selinux_spec.rb
serverspec-0.10.0 spec/debian/selinux_spec.rb
serverspec-0.9.8 spec/debian/selinux_spec.rb
serverspec-0.9.7 spec/debian/selinux_spec.rb
serverspec-0.9.6 spec/debian/selinux_spec.rb
serverspec-0.9.5 spec/debian/selinux_spec.rb