The reconstructed evaluation script behind this rule's OVAL check(s) — every module a compound check combines, with this rule's own concrete values and DISA's SCC tool's real per-module mechanism curated from static teardown of SCC releases.
#!/bin/bash
# Reconstructed from oval:mil.disa.fso.aix11:def:204
# TCP backlog queue sizes must be set appropriately.
# Per-module read mechanism curated from static teardown of DISA's SCC tool
# (SCAP Compliance Checker) -- see the SCC Automation Reference above.
# clean_partial_conns != 0
# textfilecontent54_object (textfilecontent54_test)
test_1() {
[ "$(sed -En 's/^no:[^:]*
clean_partial_conns = "([0-9]+)"/\1/p' '/etc/tunables/nextboot')" -ne 0 ]
}
if test_1; then
echo "PASS"
else
echo "FAIL"
fi Assessment Script Powered by AISandbox-executed
A standalone Shell script to assess this control automatically. Review before running it in your environment.
Syntax-checked and actually executed in an isolated sandbox (not the real system this checks) — confirmed to run without errors.
#!/bin/sh
# OVAL Definition: oval:mil.disa.fso.aix11:def:204
if [ ! -f "/etc/tunables/nextboot" ]; then echo "PASS"; exit 0; fi
awk '/^no:[^:]*\n\tclean_partial_conns = \"[0-9]+\"/' /etc/tunables/nextboot | grep -qE 'clean_partial_conns = "([0-9]+)"' || { echo "FAIL"; exit 1; }
clean_partial_conns=$(awk '/^no:[^:]*\n\tclean_partial_conns = \"[0-9]+\"/ { match($0, /clean_partial_conns = \"\"([0-9]+)\"$/, arr); print arr[1] }' /etc/tunables/nextboot)
if [ "$clean_partial_conns" -ne 1 ]; then echo "FAIL"; exit 1; fi
echo "PASS"; exit 0