Skip to content

Commit

Permalink
fixed testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Feb 20, 2020
1 parent a8331d7 commit 9ddc6f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/Security.rb
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def Import(settings)
else
if @sysctl.key?(k) && settings.key?(@sysctl2sysconfig[k])
val = settings[@sysctl2sysconfig[k]].to_s
tmpSettings[k] = SYSCTL_VALUES[val] || val
tmpSettings[k] = SYSCTL_VALUES.key?(val) ? SYSCTL_VALUES[val] : val
else
tmpSettings[k] = settings[@obsolete_login_defs[k]] || v
end
Expand Down
2 changes: 1 addition & 1 deletion test/security_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def enabled?
it "writes valid values" do
expect(SCR).to exec_bash("echo 1 > /proc/sys/kernel/sysrq")

Security.Settings["kernel.sysrq"] = true
Security.Settings["kernel.sysrq"] = "1"
Security.write_kernel_settings
end
end
Expand Down

0 comments on commit 9ddc6f2

Please sign in to comment.