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
Check for Amazon Linux when determining audit package. #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HenryTheHamster Awesome, thank you for your contribution. Could you please sign-off the commit too?
controls/package_spec.rb
Outdated
@@ -80,7 +80,7 @@ | |||
impact 1.0 | |||
title 'Install auditd' | |||
desc 'auditd provides extended logging capacities on recent distribution' | |||
audit_pkg = os.redhat? || os.suse? ? 'audit' : 'auditd' | |||
audit_pkg = os.redhat? || os.suse? || os.family == 'amazon' ? 'audit' : 'auditd' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InSpec is going to use the helper like linux?
or windows?
for family. Lets use os.name == 'amazon'
here
Signed-off-by: andy shaw <shawry@shawry.com>
Hi @chris-rock, thanks for the input. Is there anything more required for this to be merged? Cheers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HenryTheHamster thanks for your fix. great!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @HenryTheHamster
Fixes #79 |
We've been running against Amazon Linux, and while all the audit config is detected fine, the package controls are looking for the auditd package and failing.