Uninstall CUPS Package
An XCCDF Rule
Description
Thecups
package can be removed with the following command:
$ sudo yum erase cups
Rationale
If the system does not need to print jobs or accept print jobs from other systems, it is recommended that CUPS be removed to reduce the potential attack surface.
- ID
- xccdf_org.ssgproject.content_rule_package_cups_removed
- Severity
- Unknown
- References
- Updated
Remediation Templates
A Puppet Snippet
include remove_cups
class remove_cups {
package { 'cups':
ensure => 'purged',
}
}
An Ansible Snippet
- name: Ensure cups is removed
package:
name: cups
state: absent
tags:
- CCE-86299-5
script:kickstart
package remove cups
script:bootc
dnf remove cups
Anaconda Pre-Install Instructions
package --remove=cups
A Shell Script
# CAUTION: This remediation script will remove cups
# from the system, and may remove any packages
# that depend on cups. Execute this
# remediation AFTER testing on a non-production
# system!