Disable Advanced Configuration and Power Interface (acpid)
An XCCDF Rule
Description
The Advanced Configuration and Power Interface Daemon (acpid
)
dispatches ACPI events (such as power/reset button depressed) to userspace
programs.
The acpid
service can be disabled with the following command:
$ sudo systemctl mask --now acpid.service
Rationale
ACPI support is highly desirable for systems in some network roles, such as laptops or desktops. For other systems, such as servers, it may permit accidental or trivially achievable denial of service situations and disabling it is appropriate.
- ID
- xccdf_org.ssgproject.content_rule_service_acpid_disabled
- Severity
- Medium
- References
- Updated
Remediation - Puppet
include disable_acpid
class disable_acpid {
service {'acpid':
enable => false,
ensure => 'stopped',
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-82407-8
- NIST-800-53-CM-6(a)
Remediation - script:kickstart
service disable acpid
Remediation - OS Build Blueprint
[customizations.services]
masked = ["acpid"]
Remediation - Kubernetes Patch
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
spec:
config:
ignition:
version: 3.1.0
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" stop 'acpid.service'
"$SYSTEMCTL_EXEC" disable 'acpid.service'