Skip to content

Commit 0138222

Browse files
author
Patrick Meier
committed
FIX linting
Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>
1 parent 5d91f45 commit 0138222

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

default/serverspec/os_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
end
4848

4949
# GIS: Req 3.21-12
50-
describe "SUID/ SGID whitelist check" do
51-
it "found only whitelist suid/sgid" do
50+
describe 'SUID/ SGID whitelist check' do
51+
it 'found only whitelist suid/sgid' do
5252
whitelist = [
5353
# whitelist as provided by NSA
5454
'/bin/mount', '/bin/ping', '/bin/su', '/bin/umount', '/sbin/pam_timestamp_check',
@@ -102,13 +102,13 @@
102102
end
103103

104104
# GIS: Req 3.21-16
105-
describe "Unique uid" do
106-
it "check for unique uid's" do
105+
describe 'Unique uid' do
106+
it 'check for unique uids' do
107107
actual = command('cat /etc/passwd | cut -d \':\' -f 3').stdout.split(/\r?\n/)
108-
hm = actual.each_with_object(Hash.new(0)) { |d,counts| counts[d] += 1 }
109-
hm.each do |k,v|
108+
hm = actual.each_with_object(Hash.new(0)) { |d, counts| counts[d] += 1 }
109+
hm.each do |k, v|
110110
str = "User: UID #{k} instances: "
111111
("#{str}#{v}").should eq("#{str}1")
112112
end
113113
end
114-
end
114+
end

default/serverspec/sysctl_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,4 @@
206206
context linux_kernel_parameter('kernel.randomize_va_space') do
207207
its(:value) { should eq 2 }
208208
end
209-
end
209+
end

0 commit comments

Comments
 (0)