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-cisco-2.41.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-cisco-2.40.2 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.42.2 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.42.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.42.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.41.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.41.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.40.2 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.40.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.40.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.39.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.39.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.38.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.38.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.37.9 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.37.8 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.37.6 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.37.5 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.37.4 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.37.3 lib/specinfra/command/linux/base/selinux.rb