Information
The eXtended InterNET Daemon ( xinetd ) is an open source super daemon that replaced the original inetd daemon. The xinetd daemon listens for well known services and dispatches the appropriate daemon to properly respond to service requests.
If there are no xinetd services required, it is recommended that the package be removed to reduce the attack surface are of the system.
Note: If an xinetd service or services are required, ensure that any xinetd service not required is stopped and masked
Solution
Run the following commands to stop xinetd.service and remove the xinetd package:
# systemctl stop xinetd.service
# apt purge xinetd
-OR-
-IF- the xinetd package is required as a dependency:
Run the following commands to stop and mask the xinetd.service :
# systemctl stop xinetd.service
# systemctl mask xinetd.service
Impact:
There may be packages that are dependent on the xinetd package. If the xinetd package is removed, these dependent packages will be removed as well. Before removing the xinetd package, review any dependent packages to determine if they are required on the system.
-IF- a dependent package is required: stop and mask xinetd.service leaving the xinetd package installed.