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

sysctl fixes #11

Merged
merged 3 commits into from
May 12, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions attributes/sysctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@


# Only enable IP traffic forwarding, if required.
default[:sysctl][:params][:net][:ipv4][:ip_forward] = 0
default[:sysctl][:params][:net][:ipv6][:conf][:all][:forwarding] = 0
default[:sysctl][:params][:net][:ipv4][:ip_forward] =
node[:network][:forwarding] ? 1 : 0
default[:sysctl][:params][:net][:ipv6][:conf][:all][:forwarding] =
(node[:network][:ipv6][:enable] and node[:network][:forwarding]) ? 1 : 0

# Enable RFC-recommended source validation feature. It should not be used for
# routers on complex networks, but is helpful for end hosts and routers serving
Expand Down Expand Up @@ -161,7 +163,7 @@
# * **128** - reboot/poweroff
# * **256** - nicing of all RT tasks
default[:sysctl][:params][:kernel][:sysrq] =
node[:security][:kernel][:enable_sysrq] || 0
node[:security][:kernel][:enable_sysrq] ? node[:security][:kernel][:secure_sysrq] || 0


# Prevent core dumps with SUID. These are usually only needed by developers and
Expand Down