Skip to content
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

Merged
merged 4 commits into from Aug 10, 2017

Conversation

HenryTheHamster
Copy link
Contributor

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.

Copy link
Member

@chris-rock chris-rock left a 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?

@@ -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'
Copy link
Member

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>
@HenryTheHamster
Copy link
Contributor Author

Hi @chris-rock, thanks for the input. Is there anything more required for this to be merged? Cheers!

Copy link
Member

@atomic111 atomic111 left a 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!!!

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @HenryTheHamster

@atomic111 atomic111 merged commit c72d8ad into dev-sec:master Aug 10, 2017
@chris-rock
Copy link
Member

Fixes #79

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

Successfully merging this pull request may close these issues.

None yet

3 participants