Skip to content

Enable nails Service

An XCCDF Rule

Description

The nails service is used to run McAfee VirusScan Enterprise for Linux and McAfee Host-based Security System (HBSS) services. The nails service can be enabled with the following command:

$ sudo systemctl enable nails.service

Rationale

Virus scanning software can be used to detect if a system has been compromised by computer viruses, as well as to limit their spread to other systems.

ID
xccdf_org.ssgproject.content_rule_service_nails_enabled
Severity
Medium
References
Updated



Remediation - Puppet

include enable_nails

class enable_nails {
  service {'nails':
    enable => true,
    ensure => 'running',

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then

SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask 'nails.service'
"$SYSTEMCTL_EXEC" start 'nails.service'

Remediation - OS Build Blueprint


[customizations.services]
enabled = ["nails"]

Remediation - Ansible

- name: Enable service nails
  block:

  - name: Gather the package facts
    package_facts:
      manager: auto