Sha256: 0cbdb22389aa00f09625f1715927add5c2b03c7cdb945ac24d577d2d365e1c6f

Contents?: true

Size: 625 Bytes

Versions: 20

Compression:

Stored size: 625 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'Gentoo'
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/gentoo/selinux_spec.rb
serverspec-0.11.0 spec/gentoo/selinux_spec.rb
serverspec-0.10.13 spec/gentoo/selinux_spec.rb
serverspec-0.10.12 spec/gentoo/selinux_spec.rb
serverspec-0.10.11 spec/gentoo/selinux_spec.rb
serverspec-0.10.10 spec/gentoo/selinux_spec.rb
serverspec-0.10.9 spec/gentoo/selinux_spec.rb
serverspec-0.10.8 spec/gentoo/selinux_spec.rb
serverspec-0.10.7 spec/gentoo/selinux_spec.rb
serverspec-0.10.6 spec/gentoo/selinux_spec.rb
serverspec-0.10.5 spec/gentoo/selinux_spec.rb
serverspec-0.10.4 spec/gentoo/selinux_spec.rb
serverspec-0.10.3 spec/gentoo/selinux_spec.rb
serverspec-0.10.2 spec/gentoo/selinux_spec.rb
serverspec-0.10.1 spec/gentoo/selinux_spec.rb
serverspec-0.10.0 spec/gentoo/selinux_spec.rb
serverspec-0.9.8 spec/gentoo/selinux_spec.rb
serverspec-0.9.7 spec/gentoo/selinux_spec.rb
serverspec-0.9.6 spec/gentoo/selinux_spec.rb
serverspec-0.9.5 spec/gentoo/selinux_spec.rb