Skip to content

Commit

Permalink
Merge pull request #106 from dev-sec/apparmor_cmp
Browse files Browse the repository at this point in the history
revert to using cmp for 1.6.3.2 because of implicit string conversion
  • Loading branch information
schurzi committed Feb 1, 2021
2 parents 201cbcf + bce9c4f commit 9ae527c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ Lint/AmbiguousBlockAssociation:
Enabled: false
Lint/AmbiguousRegexpLiteral:
Enabled: false
Style/NumericPredicate:
Enabled: false
2 changes: 1 addition & 1 deletion controls/1_6_mandatory_access_control.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
only_if { cis_level == 2 && package('apparmor').installed? }

describe command('apparmor_status --profiled') do
its('stdout') { should cmp.positive? }
its('stdout') { should cmp > 0 }
end

describe command('apparmor_status --complaining') do
Expand Down

0 comments on commit 9ae527c

Please sign in to comment.