diff --git a/Makefile b/Makefile index e3e433f21..9cfdefabc 100755 --- a/Makefile +++ b/Makefile @@ -541,7 +541,7 @@ nxOMSGenerateInventoryMof: nxOMSPlugin: rm -rf output/staging; \ - VERSION="3.57"; \ + VERSION="3.58"; \ PROVIDERS="nxOMSPlugin"; \ STAGINGDIR="output/staging/$@/DSCResources"; \ cat Providers/Modules/$@.psd1 | sed "s@@$${VERSION}@" > intermediate/Modules/$@.psd1; \ diff --git a/Providers/Modules/Plugins/PatchManagement/plugin/patch_management_lib.rb b/Providers/Modules/Plugins/PatchManagement/plugin/patch_management_lib.rb index 2bd9a8f9f..0cef8a513 100644 --- a/Providers/Modules/Plugins/PatchManagement/plugin/patch_management_lib.rb +++ b/Providers/Modules/Plugins/PatchManagement/plugin/patch_management_lib.rb @@ -51,6 +51,14 @@ def getHostOSDetails() def getOSShortName(os_short_name = nil, os_version=nil) version = "" hostOSDetailsMap = getHostOSDetails() + #os short name is not proper for oracle linux at /etc/opt/microsoft/scx/conf/scx-release. this is to return proper short name till scx fixes the issue. + if hostOSDetailsMap.key?("OSFullName") && hostOSDetailsMap.key?("OSShortName") + osFullName = hostOSDetailsMap["OSFullName"] + osShortName = hostOSDetailsMap["OSShortName"] + if osFullName.downcase.include?("oracle") && ! osShortName.downcase.include?("oracle") + os_short_name = "Oracle" + end + end # match string of the form (1 or more non . chars)- followed by a . - (1 or more non . chars) - followed by anything if hostOSDetailsMap.key?("OSShortName") @@ -104,6 +112,8 @@ def getOSShortName(os_short_name = nil, os_version=nil) else version = @default_version end + when "Oracle" + version = "6.0" when "SUSE" if @os_major_version == "11" version = "11.0" diff --git a/Providers/Modules/Plugins/SecurityBaseline/plugin/oms_audits.xml b/Providers/Modules/Plugins/SecurityBaseline/plugin/oms_audits.xml index 0cce957a4..aa5cdb3e9 100644 --- a/Providers/Modules/Plugins/SecurityBaseline/plugin/oms_audits.xml +++ b/Providers/Modules/Plugins/SecurityBaseline/plugin/oms_audits.xml @@ -556,8 +556,8 @@ remediation="Add a boot loader password to the file '/boot/grub/grub.cfg'" ruleId="8a4f5ce8-41c4-710c-631e-fbc36a2fa53e"> - - + + - +