-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/etc/motd should skip permissions check if file doesn't exist #125
Comments
I have two things to highlight here:
|
I should clarify, we have an MOTD, it just isn't at that location. Our base cookbook drops a file under the |
I believe this is more along the lines of what you are looking for? I'll get a PR opened shortly
|
We also don't have any of those other files, our Update, sorry I'm just realizing that that is sample output from your own machine. I'm slow. |
No worries :) This will account for any files under |
Describe the bug
We've been getting Inspec reports about the
/etc/motd
permissions from this section here: https://github.com/dev-sec/cis-dil-benchmark/blob/master/controls/1_7_warning_banners.rb#L61-L74However in most of our VMs, we do not have an
/etc/motd
file. The inspec message is:I would think the check should just skip if the file doesn't exist. It's certainly not a security issue.
Expected behavior
Exit/skip and move on to the next check
Actual behavior
Example code
OS / Environment
Inspec Version
Baseline Version
Whatever is in https://github.com/dev-sec/cis-dil-benchmark/archive/master.zip
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: