Sha256: 904f92ba6f00e76bfd4215e0b02f5f92424231a1d8beb46cfeaf357b718e1aff
Contents?: true
Size: 625 Bytes
Versions: 20
Compression:
Stored size: 625 Bytes
Contents
require 'spec_helper' RSpec.configure do |c| c.os = 'RedHat' end 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
20 entries across 20 versions & 1 rubygems