Skip to content

Commit c27fc05

Browse files
committed
fix rubocop Conventions
1 parent 50abb79 commit c27fc05

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

controls/os_spec.rb

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
elsif os.debian?
2727
shadow_group = 'shadow'
2828
end
29-
blacklist = attribute('blacklist',
29+
blacklist = attribute(
30+
'blacklist',
3031
default: [
3132
# blacklist as provided by NSA
3233
'/usr/bin/rcp', '/usr/bin/rlogin', '/usr/bin/rsh',
@@ -54,21 +55,22 @@
5455
'/usr/lib/pt_chown', # pseudo-tty, needed?
5556
'/usr/lib/eject/dmcrypt-get-device',
5657
'/usr/lib/mc/cons.saver' # midnight commander screensaver
57-
# from Ubuntu xenial, need to investigate
58-
# '/sbin/unix_chkpwd',
59-
# '/sbin/pam_extrausers_chkpwd',
60-
# '/usr/lib/x86_64-linux-gnu/utempter/utempter',
61-
# '/usr/sbin/postdrop',
62-
# '/usr/sbin/postqueue',
63-
# '/usr/bin/ssh-agent',
64-
# '/usr/bin/mlocate',
65-
# '/usr/bin/crontab',
66-
# '/usr/bin/screen',
67-
# '/usr/bin/expiry',
68-
# '/usr/bin/wall',
69-
# '/usr/bin/chage',
58+
# from Ubuntu xenial, need to investigate
59+
# '/sbin/unix_chkpwd',
60+
# '/sbin/pam_extrausers_chkpwd',
61+
# '/usr/lib/x86_64-linux-gnu/utempter/utempter',
62+
# '/usr/sbin/postdrop',
63+
# '/usr/sbin/postqueue',
64+
# '/usr/bin/ssh-agent',
65+
# '/usr/bin/mlocate',
66+
# '/usr/bin/crontab',
67+
# '/usr/bin/screen',
68+
# '/usr/bin/expiry',
69+
# '/usr/bin/wall',
70+
# '/usr/bin/chage',
7071
# '/usr/bin/bsd-write'
71-
], description: 'blacklist of suid/sgid program on system'
72+
],
73+
description: 'blacklist of suid/sgid program on system'
7274
)
7375

7476
control 'os-01' do

controls/sysctl_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@
329329
# its(:value) { should match /0|2/ }
330330
its(:value) { should eq 2 }
331331
end
332-
# unless kernel_parameter('fs.suid_dumpable') == 2
333-
# describe kernel_parameter('fs.suid_dumpable') do
332+
# unless kernel_parameter('fs.suid_dumpable') == 2
333+
# describe kernel_parameter('fs.suid_dumpable') do
334334
# its(:value) { should eq 2 }
335335
# end
336336
describe kernel_parameter('kernel.core_pattern') do

0 commit comments

Comments
 (0)