Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

V-72223 Does not Parse Config File Properly #59

Open
Bialogs opened this issue Feb 8, 2019 · 1 comment
Open

V-72223 Does not Parse Config File Properly #59

Bialogs opened this issue Feb 8, 2019 · 1 comment

Comments

@Bialogs
Copy link
Member

Bialogs commented Feb 8, 2019

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.

@trevor-vaughan
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants