Sha256: 5e367a81fd1edc289f3d72ea3673f888e33bf4789288c304fb57c4f0bd7ff7dc

Contents?: true

Size: 580 Bytes

Versions: 8

Compression:

Stored size: 580 Bytes

Contents

require 'spec_helper'

include Serverspec::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 "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/gentoo/selinux_spec.rb
serverspec-0.6.27 spec/gentoo/selinux_spec.rb
serverspec-0.6.26 spec/gentoo/selinux_spec.rb
serverspec-0.6.25 spec/gentoo/selinux_spec.rb
serverspec-0.6.24 spec/gentoo/selinux_spec.rb
serverspec-0.6.23 spec/gentoo/selinux_spec.rb
serverspec-0.6.22 spec/gentoo/selinux_spec.rb
serverspec-0.6.21 spec/gentoo/selinux_spec.rb