From abfaf765e650b85c8a6dbb9da0c52330c0ef9d33 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Mon, 14 Jul 2025 12:55:48 -0500 Subject: [PATCH] . --- ProjectCode/Modules/Security/secharden-scap-stig.sh | 13 ++++++++++--- ProjectCode/Modules/Security/secharden-ssh.sh | 9 +++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ProjectCode/Modules/Security/secharden-scap-stig.sh b/ProjectCode/Modules/Security/secharden-scap-stig.sh index 6bce1f6..1054b1d 100644 --- a/ProjectCode/Modules/Security/secharden-scap-stig.sh +++ b/ProjectCode/Modules/Security/secharden-scap-stig.sh @@ -1,14 +1,16 @@ #!/bin/bash -##### + +######################################### #Core framework functions... -##### +######################################### export PROJECT_ROOT_PATH PROJECT_ROOT_PATH="$(realpath ../../../)" #Framework variables are read from hee + export GIT_VENDOR_PATH_ROOT GIT_VENDOR_PATH_ROOT="$PROJECT_ROOT_PATH/vendor/git@git.knownelement.com/29418/" @@ -25,9 +27,14 @@ for project_include_file in ../../../Project-Includes/*; do source "$project_include_file" done -# Actual script logic starts here +#Framework variables are read from hee +source $KNELShellFrameworkRoot/Framework-ConfigFiles/FrameworkVars +######################################### +# Core script code begins here +######################################### + # Sourced from # https://complianceascode.readthedocs.io/en/latest/manual/developer/01_introduction.html diff --git a/ProjectCode/Modules/Security/secharden-ssh.sh b/ProjectCode/Modules/Security/secharden-ssh.sh index fa15689..89b47aa 100644 --- a/ProjectCode/Modules/Security/secharden-ssh.sh +++ b/ProjectCode/Modules/Security/secharden-ssh.sh @@ -1,8 +1,8 @@ #!/bin/bash -##### +######################################### #Core framework functions... -##### +######################################### export PROJECT_ROOT_PATH PROJECT_ROOT_PATH="$(realpath ../../../)" @@ -29,6 +29,11 @@ done #Framework variables are read from hee source $KNELShellFrameworkRoot/Framework-ConfigFiles/FrameworkVars + +######################################### +# Core script code begins here +######################################### + export SUBODEV_CHECK SUBODEV_CHECK="$(getent passwd | grep -c subodev || true)"