We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea782c commit 09054eeCopy full SHA for 09054ee
recipes/sysctl.rb
@@ -105,7 +105,7 @@
105
# Prevent core dumps with SUID. These are usually only needed by developers and
106
# may contain sensitive information.
107
node.default['sysctl']['params']['fs']['suid_dumpable'] =
108
- node['os-hardening']['security']['kernel']['enable_core_dump'] ? 1 : 0
+ node['os-hardening']['security']['kernel']['enable_core_dump'] ? 2 : 0
109
110
# include sysctl recipe and set /etc/sysctl.d/99-chef-attributes.conf
111
include_recipe 'sysctl::apply'
spec/recipes/sysctl_spec.rb
@@ -351,7 +351,7 @@
351
let(:enable_core_dump) { true }
352
353
it 'should set suid_dumpable to safe value' do
354
- is_expected.to eq(1)
+ is_expected.to eq(2)
355
end
356
357
0 commit comments