You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
Without setting a custom assignment regex for InSpec's parse_config_file (more info here) TMOUT is not being properly parsed.
One alternative is to just check to see if the environment variable is set and of the correct value. However, that does not really meet the intent of the STIG which is to have it set "...in a script created to enforce session termination after inactivity..."
And then you have the SIMP-specific issue of the template /etc/profile.d/simp.sh having the line [ $TMOUT ] || export TMOUT=600. You'd then parse the export statement, but then there is not a guarantee that it is correct unless you check the environment variable.
The text was updated successfully, but these errors were encountered:
Checking the environment variable, and attempting to reset it (and failing), is the only functionally correct answer. Anything else can be modified by a later script.
Without setting a custom assignment regex for InSpec's
parse_config_file
(more info here)TMOUT
is not being properly parsed.One alternative is to just check to see if the environment variable is set and of the correct value. However, that does not really meet the intent of the STIG which is to have it set "...in a script created to enforce session termination after inactivity..."
And then you have the SIMP-specific issue of the template
/etc/profile.d/simp.sh
having the line[ $TMOUT ] || export TMOUT=600
. You'd then parse the export statement, but then there is not a guarantee that it is correct unless you check the environment variable.The text was updated successfully, but these errors were encountered: