Sha256: d68b29b57ecd094421187af122bb270add6fded6107904f73005accc2e039aad

Contents?: true

Size: 615 Bytes

Versions: 26

Compression:

Stored size: 615 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 "test ! -f /etc/selinux/config || (getenforce | grep -i -- disabled && grep -i -- ^SELINUX=disabled$ /etc/selinux/config)" }
end

Version data entries

26 entries across 26 versions & 1 rubygems

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