Sha256: bb3aa2b0d527de8eefd7f018394468e245ada6c5fe36e10cb98f701b781609cf
Contents?: true
Size: 614 Bytes
Versions: 42
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' include SpecInfra::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
42 entries across 42 versions & 1 rubygems