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.15.2 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.15.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.15.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.14.4 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.14.3 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.14.2 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.14.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.14.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.13.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.13.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.12.7 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.12.6 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.12.5 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.12.4 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.12.3 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.12.1 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.12.0 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.11.10 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.11.9 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.11.8 lib/specinfra/command/linux/base/selinux.rb