Sha256: c478340cbd441ab928e1a1828cd93a94f9ce43a0e6613fdb0e22807b090089d7
Contents?: true
Size: 615 Bytes
Versions: 28
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::RedHat 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
28 entries across 26 versions & 1 rubygems