Sha256: 1acb6d8e353eca3190779f209938e5caf44eea7023ca7c3b82a0460cb286e840

Contents?: true

Size: 580 Bytes

Versions: 8

Compression:

Stored size: 580 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Debian

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/debian/selinux_spec.rb
serverspec-0.6.27 spec/debian/selinux_spec.rb
serverspec-0.6.26 spec/debian/selinux_spec.rb
serverspec-0.6.25 spec/debian/selinux_spec.rb
serverspec-0.6.24 spec/debian/selinux_spec.rb
serverspec-0.6.23 spec/debian/selinux_spec.rb
serverspec-0.6.22 spec/debian/selinux_spec.rb
serverspec-0.6.21 spec/debian/selinux_spec.rb