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.solaris11:def:13
# The /usr/aset/userlist file must exist.
# Per-module read mechanism curated from static teardown of DISA's SCC tool
# (SCAP Compliance Checker) -- see the SCC Automation Reference above.
# ASET is not installed
# package_object (package_test)
test_1() {
! ( pkginfo -q 'SUNWast' &>/dev/null )
}
# /usr/aset/userlist exists
# file_object (file_test)
test_2() {
test -e '/usr/aset/userlist' &>/dev/null
}
# ASET is not in crontab
# textfilecontent54_object (textfilecontent54_test)
test_3() {
! ( grep -Pq '^\s*[^#\s]+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/aset/aset\s*' '/var/spool/cron/crontabs/root' &>/dev/null )
}
# ASET is properly configured in crontab
# textfilecontent54_object (textfilecontent54_test)
test_4() {
(sed -En 's/^\s*[^#\s]+\s+\S+\s+\S+\s+\S+\s+\S+\s+\/usr\/aset\/aset\s+(.*)$/\1/p' '/var/spool/cron/crontabs/root') | grep -Pq '\s*-u\s/usr/aset/userlist\s*'
}
if ! ( test_1 || ! ( test_2 && ! ( test_3 || test_4 ) ) ); 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.solaris11:def:13
if [ ! -z "$(ls -A /usr/aset 2>/dev/null)" ]; then
if [ -f "/usr/aset/userlist" ]; then
echo "PASS"
exit 0
fi
fi
echo "FAIL"
exit 1