Skip to content

Commit 0940d07

Browse files
author
Patrick Meier
committed
again some more rubocop fixing
Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>
1 parent 0213b91 commit 0940d07

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

default/inspec/sysctl_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
control '07' do
8282
impact 1.0
83-
title #TCP timestamps'
83+
title 'TCP timestamps'
8484
desc "It is possible to estimate the current uptime of a Linux system. It's preferable to disable TCP timestamps on your systems."
8585
describe kernel_parameter('net.ipv4.tcp_timestamps') do
8686
its(:value) { should eq 0 }
@@ -260,8 +260,8 @@
260260

261261
control '25' do
262262
impact 1.0
263-
title "Disable the system`s acceptance of router advertisement"
264-
desc "Setting controls whether the system will accept router advertisement"
263+
title 'Disable the system`s acceptance of router advertisement'
264+
desc 'Setting controls whether the system will accept router advertisement'
265265
describe kernel_parameter('net.ipv6.conf.all.accept_ra') do
266266
its(:value) { should eq 0 }
267267
end
@@ -337,7 +337,7 @@
337337
impact 1.0
338338
title 'CPU No execution Flag or Kernel ExecShield'
339339
desc 'Kernel features and CPU flags provide a protection against buffer overflows. The CPU NX Flag and the kernel parameter exec-shield prevents code execution on a per memory page basis. If the CPU supports the NX-Flag then this should be used instead of the kernel parameter exec-shield.'
340-
flags = parse_config_file('/proc/cpuinfo', { assignment_re: /^([^:]*?)\s+:\s+(.*?)$/ }).flags.split(' ')
340+
flags = parse_config_file('/proc/cpuinfo', assignment_re: /^([^:]*?)\s+:\s+(.*?)$/).flags.split(' ')
341341
describe '/proc/cpuinfo' do
342342
it 'Flags should include NX' do
343343
expect(flags).to include('nx')

lockdown/inspec/sysctl_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
control '07' do
8282
impact 1.0
83-
title #TCP timestamps'
83+
title 'TCP timestamps'
8484
desc "It is possible to estimate the current uptime of a Linux system. It's preferable to disable TCP timestamps on your systems."
8585
describe kernel_parameter('net.ipv4.tcp_timestamps') do
8686
its(:value) { should eq 0 }
@@ -260,8 +260,8 @@
260260

261261
control '25' do
262262
impact 1.0
263-
title "Disable the system`s acceptance of router advertisement"
264-
desc "Setting controls whether the system will accept router advertisement"
263+
title 'Disable the system`s acceptance of router advertisement'
264+
desc 'Setting controls whether the system will accept router advertisement'
265265
describe kernel_parameter('net.ipv6.conf.all.accept_ra') do
266266
its(:value) { should eq 0 }
267267
end
@@ -337,7 +337,7 @@
337337
impact 1.0
338338
title 'CPU No execution Flag or Kernel ExecShield'
339339
desc 'Kernel features and CPU flags provide a protection against buffer overflows. The CPU NX Flag and the kernel parameter exec-shield prevents code execution on a per memory page basis. If the CPU supports the NX-Flag then this should be used instead of the kernel parameter exec-shield.'
340-
flags = parse_config_file('/proc/cpuinfo', { assignment_re: /^([^:]*?)\s+:\s+(.*?)$/ }).flags.split(' ')
340+
flags = parse_config_file('/proc/cpuinfo', assignment_re: /^([^:]*?)\s+:\s+(.*?)$/).flags.split(' ')
341341
describe '/proc/cpuinfo' do
342342
it 'Flags should include NX' do
343343
expect(flags).to include('nx')

0 commit comments

Comments
 (0)