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

Add auditd fixes for Centos7 #21

Merged
merged 3 commits into from
Apr 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions controls/4_1_configure_system_accounting_auditd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
tag level: 2

describe.one do
%w(/boot/grub/grub.conf /boot/grub/grub.cfg /boot/grub/menu.lst /boot/boot/grub/grub.conf /boot/boot/grub/grub.cfg /boot/boot/grub/menu.lst).each do |f|
%w(/boot/grub/grub.conf /boot/grub/grub.cfg /boot/grub/menu.lst /boot/boot/grub/grub.conf /boot/boot/grub/grub.cfg /boot/boot/grub/menu.lst /boot/grub2/grub.cfg).each do |f|
describe file(f) do
its(:content) { should match(/audit=1/) }
end
Expand Down Expand Up @@ -353,11 +353,11 @@

if command('uname -m').stdout.strip == 'x86_64'
describe file('/etc/audit/audit.rules') do
its(:content) { should match(/^-a (always,exit|exit,always) arch=b64 -S init_module -S delete_module -k modules$/) }
its(:content) { should match(/^-a (always,exit|exit,always) -F arch=b64 -S init_module -S delete_module -k modules$/) }
end
else
describe file('/etc/audit/audit.rules') do
its(:content) { should match(/^-a (always,exit|exit,always) arch=b32 -S init_module -S delete_module -k modules$/) }
its(:content) { should match(/^-a (always,exit|exit,always) -F arch=b32 -S init_module -S delete_module -k modules$/) }
end
end
end
Expand Down