Skip to content

Uninstall tcpd Package

An XCCDF Rule

Description

The tcpd package can be removed with the following command:

$ sudo zypper remove tcpd

Rationale

Administrators can use TCP wrapper library and daemon for host control over network services. In these implementations, xinetd runs tcpd program, which first looks at the incomming connection as well as the access control lists in the /etc/hosts.allow and /etc/hosts.deny files. Removing the xinetd package decreases the risk of the xinetd service's accidental (or intentional) activation. The removal of tcpd package will support this protective measure in addition.

ID
xccdf_org.ssgproject.content_rule_package_tcp_wrappers_removed
Severity
Low
References
Updated



Remediation - Puppet

include remove_tcpd

class remove_tcpd {
  package { 'tcpd':
    ensure => 'purged',
  }

Remediation - Ansible

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

Remediation - Shell Script

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

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