Skip to content

Commit

Permalink
Merge pull request #21 from millerthomasj/auditd4.1
Browse files Browse the repository at this point in the history
Add auditd fixes for Centos7
  • Loading branch information
rarenerd authored Apr 11, 2018
2 parents 4896578 + d93ce5b commit 09c9f7c
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 09c9f7c

Please sign in to comment.