We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ba6b42 + 7709dbc commit e07a21fCopy full SHA for e07a21f
attributes/sysctl.rb
@@ -94,8 +94,11 @@
94
# ExecShield protection against buffer overflows
95
case node['platform_family']
96
when 'rhel', 'fedora'
97
+ # on Oracle Linux with UEK it is not available; this helps address UEK on Oracle Linux 6
98
+ is_oracle_uek = (node['platform'] == 'oracle' && node['kernel']['release'] =~ /^4\..*uek/)
99
+
100
# on RHEL 7 its enabled per default and can't be disabled
- if node['platform_version'].to_f < 7
101
+ if node['platform_version'].to_f < 7 && !is_oracle_uek
102
default['sysctl']['params']['kernel']['exec-shield'] = 1
103
end
104
0 commit comments