Add resource type linux_audit_system - #527
Merged
Merged
Conversation
Owner
|
Thanks! I think describe linux_audit_system do
its(:rules) { should include '-w /etc/audit/ -p wa' }
its(:rules) { should include '-w /var/lib/ -p wa' }
its(:rules) { should include %r!/var/lib/! }
its(:rules) { should_not include %r!/var/log! }
endWe should use standard RSpec matchers as much as we can. And tests failed in Ruby 1.8.7. Please fix this. |
Contributor
Author
|
Thanks for the hints, implemented it as suggested, 1.8.7 is ok now. rulesTo check that auditd has a given auditing rule. Argument can be a string for equality comparison or a regular expression. |
Owner
|
LGTM! |
mizzy
added a commit
that referenced
this pull request
Aug 8, 2015
Add resource type linux_audit_system
Owner
|
Released as v2.21.0. |
Contributor
Author
|
Great, thanks for merging! I'm going to provide docs within the next days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow checking the configuration of linux audit system via
/sbin/auditctl. Suitable for server hardening.be_running
To make sure that the audit system is running.
be_enabled
To make sure that the audit system is enabled (mode '1').
have_audit_rule
To check that auditd has a given auditing rule. Argument can be a string for equality comparison or a regular expression.