Class: Contrast::Config::ProtectRuleConfiguration

Inherits:
BaseConfiguration show all
Defined in:
lib/contrast/config/protect_rule_configuration.rb

Overview

Common Configuration settings. Those in this section pertain to the rule mode of a single protect rule in the Agent.

Constant Summary collapse

KEYS =
{
    enable: EMPTY_VALUE,
    mode: EMPTY_VALUE,
    disable_system_commands: EMPTY_VALUE,
    detect_custom_code_accessing_system_files: Contrast::Config::DefaultValue.new('true')
}.cs__freeze

Constants inherited from BaseConfiguration

BaseConfiguration::BOOLEANS, BaseConfiguration::EMPTY_VALUE

Instance Attribute Summary

Attributes inherited from BaseConfiguration

#map

Instance Method Summary collapse

Methods inherited from BaseConfiguration

#assign_value_to_path_array, #nil?

Constructor Details

#initialize(hsh) ⇒ ProtectRuleConfiguration

Returns a new instance of ProtectRuleConfiguration.



18
19
20
# File 'lib/contrast/config/protect_rule_configuration.rb', line 18

def initialize hsh
  super(hsh, KEYS)
end