Sha256: bd411e8d0f8cccf206695bc0caec7d777377c63435145de7f56118aa286888d7

Contents?: true

Size: 614 Bytes

Versions: 42

Compression:

Stored size: 614 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Gentoo

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.0.0 spec/gentoo/selinux_spec.rb
serverspec-0.16.0 spec/gentoo/selinux_spec.rb
serverspec-0.15.5 spec/gentoo/selinux_spec.rb
serverspec-0.15.4 spec/gentoo/selinux_spec.rb
serverspec-0.15.3 spec/gentoo/selinux_spec.rb
serverspec-0.15.2 spec/gentoo/selinux_spec.rb
serverspec-0.15.1 spec/gentoo/selinux_spec.rb
serverspec-0.15.0 spec/gentoo/selinux_spec.rb
serverspec-0.14.4 spec/gentoo/selinux_spec.rb
serverspec-0.14.3 spec/gentoo/selinux_spec.rb
serverspec-0.14.2 spec/gentoo/selinux_spec.rb
serverspec-0.14.1 spec/gentoo/selinux_spec.rb
serverspec-0.14.0 spec/gentoo/selinux_spec.rb
serverspec-0.13.7 spec/gentoo/selinux_spec.rb
serverspec-0.13.6 spec/gentoo/selinux_spec.rb
serverspec-0.13.5 spec/gentoo/selinux_spec.rb
serverspec-0.13.4 spec/gentoo/selinux_spec.rb
serverspec-0.13.3 spec/gentoo/selinux_spec.rb
serverspec-0.13.2 spec/gentoo/selinux_spec.rb
serverspec-0.13.1 spec/gentoo/selinux_spec.rb