Security Advisories (3)
CVE-2017-0373 (2017-05-10)

The gen_class_pod implementation in lib/Config/Model/Utils/GenClassPod.pm in Config-Model (aka libconfig-model-perl) before 2.102 has a dangerous "use lib" line, which allows remote attackers to have an unspecified impact via a crafted Debian package file.

CPANSA-Config-Model-2017-01 (2017-05-10)

YAML or YAML::XS can be loaded automatically making it possible to run arbitrary code loading a specially crafted YAML file.

CVE-2017-0374 (2017-05-10)

Loads models from a local directory, making it possible to substitute the model.

NAME

Config::Model::CheckList - Handle check list element

SYNOPSIS

$model ->create_config_class 
 (
  ...
  element 
  => [ 
      check_list 
      => { type => 'check_list',
           choice => [ 'A', 'B', 'C', 'D' ],
         },
      check_list_refering_to_another_hash 
      => { type => 'check_list',
           refer_to => '- foobar'
         },

     ]
 ) ;

DESCRIPTION

This class provides a check list element for a Config::Model::Node.

The available items in the check list can be :

  • A fixed list (with the choice parameter)

  • A dynamic list where the available choise are the keys of another hash of the configuration tree. This other hash is indicated by the refer_to paramater. refer_to uses the syntax of the step parameter of grab(...)

CONSTRUCTOR

CheckList object should not be created directly.

CheckList model declaration

See model declaration section from Config::Model::AnyId.

Methods

get_type

Returns list.

AUTHOR

Dominique Dumont, (ddumont at cpan dot org)

SEE ALSO

Config::Model::Model, Config::Model::Instance, Config::Model::Node, Config::Model::AnyId, Config::Model::ListId, Config::Model::HashId, Config::Model::Value