Disable DCCP Support
An XCCDF Rule
Description
The Datagram Congestion Control Protocol (DCCP) is a
relatively new transport layer protocol, designed to support
streaming media and telephony.
To configure the system to prevent the dccp
kernel module from being loaded, add the following line to the file /etc/modprobe.d/dccp.conf
:
install dccp /bin/falseTo configure the system to prevent the
dccp
from being used,
add the following line to file /etc/modprobe.d/dccp.conf
:
blacklist dccp
Rationale
Disabling DCCP protects the system against exploitation of any flaws in its implementation.
- ID
- xccdf_org.ssgproject.content_rule_kernel_module_dccp_disabled
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CJIS-5.10.1
- DISA-STIG-OL07-00-020101
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then
if LC_ALL=C grep -q -m 1 "^install dccp" /etc/modprobe.d/dccp.conf ; then
sed -i 's#^install dccp.*#install dccp /bin/false#g' /etc/modprobe.d/dccp.conf