Sha256: e394f656b8668124ffc213ecfad558d6e2080fd979de593d009e8429ceea0289

Contents?: true

Size: 378 Bytes

Versions: 4

Compression:

Stored size: 378 Bytes

Contents

class Specinfra::Command::Linux::Base::Selinux < Specinfra::Command::Base::Selinux
  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


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta14 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta13 lib/specinfra/command/linux/base/selinux.rb
specinfra-2.0.0.beta12 lib/specinfra/command/linux/base/selinux.rb