Skip to content

Commit ffb0a13

Browse files
variables names fixed
1 parent 7fda767 commit ffb0a13

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

controls/ssh_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
command('ssh').exist?
2323
end
2424

25-
ssh_custom_user = attribute('custom_user', value: 'root', description: 'The SSH user is not always root. It must be an unprivileged user in a container')
26-
ssh_custom_path = attribute('custom_path', value: '/etc/ssh', description: 'Sometimes ssh configuration files are present in another location and ssh use them with the -f flag')
25+
ssh_custom_user = attribute('ssh_custom_user', value: 'root', description: 'The SSH user is not always root. It must be an unprivileged user in a container')
26+
ssh_custom_path = attribute('ssh_custom_path', value: '/etc/ssh', description: 'Sometimes ssh configuration files are present in another location and ssh use them with the -f flag')
2727

2828
control 'ssh-01' do
2929
impact 1.0
@@ -33,7 +33,7 @@
3333
describe file(ssh_custom_path + '/ssh_config') do
3434
it { should exist }
3535
it { should be_file }
36-
it { should be_owned_by custom_user }
36+
it { should be_owned_by ssh_custom_user }
3737
it { should be_grouped_into os.darwin? ? 'wheel' : ssh_custom_user }
3838
it { should_not be_executable }
3939
it { should be_readable.by('owner') }

controls/sshd_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
sshd_x11forwarding = attribute('sshd_x11forwarding', value: 'no', description: 'Expected value for sshd_config X11Forwarding')
2929
sshd_banner = attribute('sshd_banner', value: 'none', description: 'Expected value for sshd_config Banner')
3030
sshd_max_auth_tries = attribute('sshd_max_auth_tries', value: 2, description: 'Expected value for max_auth_retries')
31-
sshd_custom_user = attribute('custom_user', value: 'root', description: 'The SSH user is not always root. It must be an unprivileged user in a container')
32-
sshd_custom_path = attribute('custom_path', value: '/etc/ssh', description: 'Sometimes ssh configuration files are present in another location and ssh use them with the -f flag')
31+
sshd_custom_user = attribute('sshd_custom_user', value: 'root', description: 'The SSH user is not always root. It must be an unprivileged user in a container')
32+
sshd_custom_path = attribute('sshd_custom_path', value: '/etc/ssh', description: 'Sometimes ssh configuration files are present in another location and ssh use them with the -f flag')
3333

3434
sshd_valid_privseparation = if sshd_custom_user != 'root'
3535
'no'

0 commit comments

Comments
 (0)