Skip to content

Disable Red Hat Subscription Manager Daemon (rhsmcertd)

An XCCDF Rule

Description

The Red Hat Subscription Manager (rhsmcertd) periodically checks for changes in the entitlement certificates for a registered system and updates it accordingly. The rhsmcertd service can be disabled with the following command:
$ sudo systemctl mask --now rhsmcertd.service

Rationale

The rhsmcertd service can provide administrators with some additional control over which of their systems are entitled to particular subscriptions. However, for systems that are managed locally or which are not expected to require remote changes to their subscription status, it is unnecessary and can be disabled.

ID
xccdf_org.ssgproject.content_rule_service_rhsmcertd_disabled
Severity
Low
References
Updated

Remediation Templates

A Kubernetes Patch

apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
spec:
  config:
    ignition:
      version: 3.1.0

OS Build Blueprint

[customizations.services]
disabled = ["rhsmcertd"]

A Puppet Snippet

include disable_rhsmcertd
class disable_rhsmcertd {
  service {'rhsmcertd':
    enable => false,
    ensure => 'stopped',
  }
}

An Ansible Snippet

- name: Block Disable service rhsmcertd
  block:
  - name: Disable service rhsmcertd
    block:

    - name: Disable service rhsmcertd

A Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" stop 'rhsmcertd.service'
"$SYSTEMCTL_EXEC" disable 'rhsmcertd.service'
"$SYSTEMCTL_EXEC" mask 'rhsmcertd.service'