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.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta52 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta51 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta50 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta49 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta48 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta47 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta46 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta45 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta44 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta43 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta42 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta41 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta40 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta39 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta38 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta37 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta36 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta35 lib/specinfra/command/linux/base/selinux.rb