Sha256: 4af438358fba6c19e721bba3891277d4ccda9ed1090e2e2feb1407bbdc7812f4
Contents?: true
Size: 416 Bytes
Versions: 17
Compression:
Stored size: 416 Bytes
Contents
class Specinfra::Command::Linux::Base::Selinux < Specinfra::Command::Base::Selinux class << self def check_has_mode(mode) cmd = "" cmd += "test ! -f /etc/selinux/config || (" if mode == "disabled" cmd += "getenforce | grep -i -- #{escape(mode)} " cmd += "&& grep -i -- ^SELINUX=#{escape(mode)}$ /etc/selinux/config" cmd += ")" if mode == "disabled" cmd end end end
Version data entries
17 entries across 17 versions & 1 rubygems