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 - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" stop 'acpid.service'
"$SYSTEMCTL_EXEC" disable 'acpid.service'
Remediation - Kubernetes Patch
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
spec:
config:
ignition:
version: 3.1.0
Remediation - OS Build Blueprint
[customizations.services]
disabled = ["acpid"]
Remediation - Puppet
include disable_acpid
class disable_acpid {
service {'acpid':
enable => false,
ensure => 'stopped',
Remediation - Ansible
- name: Block Disable service acpid
block:
- name: Disable service acpid
block: