Skip to content

Commit e07a21f

Browse files
Merge pull request #235 from eyespies/master
Do not apply exec-shield if running Oracle Linux with UEK - addresses #234
2 parents 8ba6b42 + 7709dbc commit e07a21f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

attributes/sysctl.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@
9494
# ExecShield protection against buffer overflows
9595
case node['platform_family']
9696
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+
97100
# on RHEL 7 its enabled per default and can't be disabled
98-
if node['platform_version'].to_f < 7
101+
if node['platform_version'].to_f < 7 && !is_oracle_uek
99102
default['sysctl']['params']['kernel']['exec-shield'] = 1
100103
end
101104
end

0 commit comments

Comments
 (0)