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.
# Reconstructed from oval:mil.disa.fso.rhel11:def:268
# The rlogind service must not be running.
# This rule's OVAL object type(s) aren't yet recognized as a curated
# Linux/Unix or Windows mechanism -- see the MANUAL REVIEW notes below.
#
# MANUAL REVIEW REQUIRED -- the module(s) below could not be reconstructed
# into working code from curated SCC reference data, and are excluded from
# the automated result:
# - xinetd_object (xinetd_test) -- rlogin not enabled: no curated SCC reference for xinetd_object
# xinetd.conf absent
# file_object (file_test)
test_1() {
! ( test -e '/etc/xinetd.conf' &>/dev/null )
}
if test_1; then
echo "PASS (automated portion only -- MANUAL REVIEW still required, see notes above)"
else
echo "FAIL (or see MANUAL REVIEW note above)"
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.rhel11:def:268
if [ ! -f "/etc/xinetd.conf" ]; then echo "PASS"; exit 0; fi; if [ -f "/etc/xinetd.d/rlogin" ]; then xinetd_state=$(grep -w "service login" /etc/xinetd.conf | awk -F' ' '{print $3}' | grep -w "disable=yes"); if [ -z "$xinetd_state" ]; then echo "FAIL"; exit 1; fi; fi; echo "PASS"; exit 0