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

Version Path
specinfra-2.0.0.beta32 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta31 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta30 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta29 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta28 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta27 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta26 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta25 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta24 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta23 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta22 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta21 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta20 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta19 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta18 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta17 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta16 lib/specinfra/command/linux/base/selinux.rb