High Level

TEMPLATE ocil_package

Insert general ocil clause to check if a package is installed, substituting the correct package management software.

Parameters
  • package (str) – Name of package

ocil_package(package)

TEMPLATE complete_ocil_entry_package

Insert a complete OCIL block for a case when a package should be removed, substituting the correct package management software.

Parameters
  • package (str) – Name of package

complete_ocil_entry_package(package)

TEMPLATE describe_package_install

Inserts a rule description for a case when a package should be installed, substituting the correct package management software.

Parameters
  • package (str) – Name of package

describe_package_install(package)

TEMPLATE package_install

Outputs a command for installing a package, substituting the correct package management software.

Parameters
  • package (str) – Name of package

package_install(package)

TEMPLATE describe_package_remove

Inserts a rule description for a case when a package should be removed, substituting the correct package management software.

Parameters
  • package (str) – Name of package

describe_package_remove(package)

TEMPLATE package_remove

Outputs a command for removing a package, substituting the correct package management software. package_remove(package)

TEMPLATE describe_service_enable

Inserts a rule description for a case when a service should be enabled, substituting the correct init system.

Parameters
  • service (str) – Name of service

describe_service_enable(service)

TEMPLATE describe_service_disable

Inserts a rule description for a case when a service should be disabled, substituting the correct init system.

Parameters
  • service (str) – Name of service

describe_service_disable(service)

TEMPLATE ocil_service_enabled

Inserts an OCIL for a case when a service should be enabled, substituting the correct init system.

Parameters
  • service (str) – Name of service

ocil_service_enabled(service)

TEMPLATE ocil_service_disabled

Inserts an OCIL for a case when a service should be disabled, substituting the correct init system.

Parameters
  • service (str) – Name of service

ocil_service_disabled(service)

TEMPLATE describe_socket_enable

Inserts a rule description for a case when a socket should be enabled, substituting the correct init system.

Parameters
  • socket (str) – Name of socket

describe_socket_enable(socket)

TEMPLATE describe_socket_disable

Inserts a rule description for a case when a socket should be disabled, substituting the correct init system.

Parameters
  • socket (str) – Name of socket

describe_socket_disable(socket)

TEMPLATE complete_ocil_entry_socket_and_service_disabled

Inserts an OCIL for a case when a service and a corresponding socket should be disabled, substituting the correct init system.

Parameters
  • service (str) – Name of service

complete_ocil_entry_socket_and_service_disabled(service)

TEMPLATE describe_timer_enable

Inserts a rule description for a case when a timer should be enabled, substituting the correct init system.

Parameters
  • timer (str) – Name of timer

describe_timer_enable(timer)

TEMPLATE ocil_timer_enabled

Inserts an OCIL for a case when a timer should be enabled, substituting the correct init system.

Parameters
  • timer (str) – Name of timer

ocil_timer_enabled(timer)

TEMPLATE oval_affected

Generates the <affected> tag for OVAL check using correct product platforms.

Parameters
  • products (str) – Name of products

oval_affected(products)