Skip to content

Commit 1726723

Browse files
committed
fix rubocop Conventions
1 parent f207161 commit 1726723

2 files changed

Lines changed: 42 additions & 42 deletions

File tree

controls/os_spec.rb

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,47 +27,47 @@
2727
shadow_group = 'shadow'
2828
end
2929
blacklist = attribute('blacklist', default: [
30-
# blacklist as provided by NSA
31-
'/usr/bin/rcp', '/usr/bin/rlogin', '/usr/bin/rsh',
32-
# sshd must not use host-based authentication (see ssh cookbook)
33-
'/usr/libexec/openssh/ssh-keysign',
34-
'/usr/lib/openssh/ssh-keysign',
35-
# misc others
36-
'/sbin/netreport', # not normally required for user
37-
'/usr/sbin/usernetctl', # modify interfaces via functional accounts
38-
# connecting to ...
39-
'/usr/sbin/userisdnctl', # no isdn...
40-
'/usr/sbin/pppd', # no ppp / dsl ...
41-
# lockfile
42-
'/usr/bin/lockfile',
43-
'/usr/bin/mail-lock',
44-
'/usr/bin/mail-unlock',
45-
'/usr/bin/mail-touchlock',
46-
'/usr/bin/dotlockfile',
47-
# need more investigation, blacklist for now
48-
'/usr/bin/arping',
49-
'/usr/sbin/arping',
50-
'/usr/sbin/uuidd',
51-
'/usr/bin/mtr', # investigate current state...
52-
'/usr/lib/evolution/camel-lock-helper-1.2', # investigate current state...
53-
'/usr/lib/pt_chown', # pseudo-tty, needed?
54-
'/usr/lib/eject/dmcrypt-get-device',
55-
'/usr/lib/mc/cons.saver' # midnight commander screensaver
56-
# from Ubuntu xenial, need to investigate
57-
# '/sbin/unix_chkpwd',
58-
# '/sbin/pam_extrausers_chkpwd',
59-
# '/usr/lib/x86_64-linux-gnu/utempter/utempter',
60-
# '/usr/sbin/postdrop',
61-
# '/usr/sbin/postqueue',
62-
# '/usr/bin/ssh-agent',
63-
# '/usr/bin/mlocate',
64-
# '/usr/bin/crontab',
65-
# '/usr/bin/screen',
66-
# '/usr/bin/expiry',
67-
# '/usr/bin/wall',
68-
# '/usr/bin/chage',
69-
# '/usr/bin/bsd-write'
70-
], description: 'blacklist of suid/sgid program on system')
30+
# blacklist as provided by NSA
31+
'/usr/bin/rcp', '/usr/bin/rlogin', '/usr/bin/rsh',
32+
# sshd must not use host-based authentication (see ssh cookbook)
33+
'/usr/libexec/openssh/ssh-keysign',
34+
'/usr/lib/openssh/ssh-keysign',
35+
# misc others
36+
'/sbin/netreport', # not normally required for user
37+
'/usr/sbin/usernetctl', # modify interfaces via functional accounts
38+
# connecting to ...
39+
'/usr/sbin/userisdnctl', # no isdn...
40+
'/usr/sbin/pppd', # no ppp / dsl ...
41+
# lockfile
42+
'/usr/bin/lockfile',
43+
'/usr/bin/mail-lock',
44+
'/usr/bin/mail-unlock',
45+
'/usr/bin/mail-touchlock',
46+
'/usr/bin/dotlockfile',
47+
# need more investigation, blacklist for now
48+
'/usr/bin/arping',
49+
'/usr/sbin/arping',
50+
'/usr/sbin/uuidd',
51+
'/usr/bin/mtr', # investigate current state...
52+
'/usr/lib/evolution/camel-lock-helper-1.2', # investigate current state...
53+
'/usr/lib/pt_chown', # pseudo-tty, needed?
54+
'/usr/lib/eject/dmcrypt-get-device',
55+
'/usr/lib/mc/cons.saver' # midnight commander screensaver
56+
# from Ubuntu xenial, need to investigate
57+
# '/sbin/unix_chkpwd',
58+
# '/sbin/pam_extrausers_chkpwd',
59+
# '/usr/lib/x86_64-linux-gnu/utempter/utempter',
60+
# '/usr/sbin/postdrop',
61+
# '/usr/sbin/postqueue',
62+
# '/usr/bin/ssh-agent',
63+
# '/usr/bin/mlocate',
64+
# '/usr/bin/crontab',
65+
# '/usr/bin/screen',
66+
# '/usr/bin/expiry',
67+
# '/usr/bin/wall',
68+
# '/usr/bin/chage',
69+
# '/usr/bin/bsd-write'
70+
], description: 'blacklist of suid/sgid program on system')
7171

7272
control 'os-01' do
7373
impact 1.0

controls/sysctl_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
# unless kernel_parameter('fs.suid_dumpable') == 2
333333
# describe kernel_parameter('fs.suid_dumpable') do
334334
# its(:value) { should eq 2 }
335-
# end
335+
# end
336336
describe kernel_parameter('kernel.core_pattern') do
337337
its(:value) { should match %r{^/.*} }
338338
end

0 commit comments

Comments
 (0)