Sha256: fb85d001133c8733fe0db9caf716f924cbbee5373cf235f705e8cb48db660275
Contents?: true
Size: 414 Bytes
Versions: 182
Compression:
Stored size: 414 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
182 entries across 182 versions & 2 rubygems
Version | Path |
---|---|
specinfra-2.0.0.beta34 | lib/specinfra/command/linux/base/selinux.rb |
specinfra-2.0.0.beta33 | lib/specinfra/command/linux/base/selinux.rb |