Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspec hangs when executing some windows profiles against linux machine #279

Closed
jcreedcmu opened this issue Dec 1, 2015 · 2 comments · Fixed by #316
Closed

Inspec hangs when executing some windows profiles against linux machine #279

jcreedcmu opened this issue Dec 1, 2015 · 2 comments · Fixed by #316
Assignees
Labels
Type: Bug Feature not working as expected
Milestone

Comments

@jcreedcmu
Copy link
Contributor

I'm not sure if this is representative of a deeper problem. In any case, if I put

control 'foo' do
  impact 1.0
  title 'abc'
  desc 'def'
  describe registry_key('blah') do
    it { should_not exist }
  end
end

control 'bar' do
  impact 1.0
  title 'abc'
  desc 'def'
  describe audit_policy do
    its('Kerberos Authentication Service') { should_not eq 'No Auditing' }
  end
end

in /tmp/a.rb and execute

bundle exec inspec exec  /tmp/a.rb --sudo-password vagrant  --sudo  --sudo-password 'vagrant' --host 10.0.0.101 --user vagrant --password vagrant --port 22 --backend ssh

where an ubuntu linux vm lives at 10.0.0.101, then inspec appears to observe one test fail (i.e. I see an F appear on console) but then hangs. This hang doesn't occur if I delete either rule foo or rule bar, and it doesn't occur if I remove the --sudo flag.

@jcreedcmu
Copy link
Contributor Author

This appears to have been introduced by cd35d82
(At least, I can't repro before that commit) so @chris-rock maybe you want to take a look at this.

@chris-rock
Copy link
Contributor

@jcreedcmu Thanks for highlighting. This is for sure an annoying bug. I have a look on this!

@chris-rock chris-rock added the Type: Bug Feature not working as expected label Dec 1, 2015
@arlimus arlimus added this to the 0.9.6 milestone Dec 7, 2015
@chris-rock chris-rock self-assigned this Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants