Skip to content

Uninstall xinetd Package

An XCCDF Rule

Description

The xinetd package can be removed with the following command:

$ sudo yum erase xinetd

Rationale

Removing the xinetd package decreases the risk of the xinetd service's accidental (or intentional) activation.

ID
xccdf_org.ssgproject.content_rule_package_xinetd_removed
Severity
Low
References
Updated



Remediation - Puppet

include remove_xinetd

class remove_xinetd {
  package { 'xinetd':
    ensure => 'purged',
  }

Remediation - Ansible

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-80850-1
  - NIST-800-53-CM-6(a)

Remediation - script:kickstart


package remove xinetd

Remediation - script:bootc


dnf remove xinetd

Remediation - Anaconda Pre-Install Instructions


package --remove=xinetd

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then

# CAUTION: This remediation script will remove xinetd
#	   from the system, and may remove any packages
#	   that depend on xinetd. Execute this