Sha256: 3d714f544dfe4e7e556bfe9eb54e2fd0c50059540cf796bc8a725585b9add616
Contents?: true
Size: 614 Bytes
Versions: 4
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Plamo 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.11.5 | spec/plamo/selinux_spec.rb |
serverspec-0.11.4 | spec/plamo/selinux_spec.rb |
serverspec-0.11.3 | spec/plamo/selinux_spec.rb |
serverspec-0.11.2 | spec/plamo/selinux_spec.rb |