Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions controls/1_4_secure_boot_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
describe.one do
grub_conf.locations.each do |f|
describe file(f) do
next unless file(f).exist?
it { should exist }
it { should_not be_readable.by 'group' }
it { should_not be_writable.by 'group' }
Expand All @@ -55,6 +56,7 @@
describe.one do
grub_conf.locations.each do |f|
describe file(f) do
next unless file(f).exist?
its(:content) { should match(/^set superusers/) }
its(:content) { should match(/^password/) }
end
Expand Down
1 change: 1 addition & 0 deletions controls/1_6_mandatory_access_control.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
describe.one do
grub_conf.locations.each do |f|
describe file(f) do
next unless file(f).exist?
its('content') { should_not match /apparmor=0/ }
end
end
Expand Down
1 change: 1 addition & 0 deletions controls/4_1_configure_system_accounting_auditd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
describe.one do
grub_conf.locations.each do |f|
describe file(f) do
next unless file(f).exist?
its('content') { should match(/audit=1/) }
end
end
Expand Down