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