diff --git a/SOURCES/wla-Disable-automatic-log-collector.patch b/SOURCES/wla-Disable-automatic-log-collector.patch new file mode 100644 index 0000000..3a03283 --- /dev/null +++ b/SOURCES/wla-Disable-automatic-log-collector.patch @@ -0,0 +1,39 @@ +From 21616a198bee14a9a95a6dacedcd1b1eca175fc6 Mon Sep 17 00:00:00 2001 +From: Ani Sinha +Date: Mon, 6 May 2024 11:50:49 +0530 +Subject: [PATCH] Disable automatic log collector + +RH-Author: Ani Sinha +RH-MergeRequest: 11: Disable automatic log collector +RH-Jira: RHEL-7273 +RH-Acked-by: Emanuele Giuseppe Esposito +RH-Acked-by: Miroslav Rezanina +RH-Commit: [1/1] 7a8002c626b45eb5e90fa0fe82694639d1e5b93d (anisinha/centos-wa-linux-agent) + +Log collector is enabled by default. Due to security concerns from our customers +disable it. + +Jira: https://issues.redhat.com/browse/RHEL-7273 +Upstream: RHEL only. + +Signed-off-by: Ani Sinha +--- + config/waagent.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/config/waagent.conf b/config/waagent.conf +index 14cd01c8..25ee83d3 100644 +--- a/config/waagent.conf ++++ b/config/waagent.conf +@@ -73,7 +73,7 @@ Logs.Verbose=n + # Logs.Console=y + + # Enable periodic log collection, default is y +-Logs.Collect=y ++Logs.Collect=n + + # How frequently to collect logs, default is each hour + Logs.CollectPeriod=3600 +-- +2.39.3 + diff --git a/SPECS/WALinuxAgent.spec b/SPECS/WALinuxAgent.spec index 459362e..77f3645 100644 --- a/SPECS/WALinuxAgent.spec +++ b/SPECS/WALinuxAgent.spec @@ -4,7 +4,7 @@ Name: WALinuxAgent Version: 2.7.0.6 -Release: 9%{?dist}.1.inferit +Release: 10%{?dist}.inferit Summary: The Microsoft Azure Linux Agent License: ASL 2.0 @@ -24,6 +24,8 @@ Patch3: wla-redhat-Fix-command-sequence-for-restarting-net-inter.patch Patch4: wla-redhat-Use-NetworkManager-to-set-DHCP-hostnames-on-r.patch # For bz#2093965 - [Azure][WALA][RHEL-9] The description of "Logs.Collect" is incorrect Patch5: wla-Update-Log-Collector-default-in-Comments-and-Readme-.patch +# For RHEL-7273 - [Azure][WALA] Consider to disable Log collector +Patch6: wla-Disable-automatic-log-collector.patch Patch100: Add-MSVSphere-support.patch @@ -161,16 +163,13 @@ rm -rf %{_unitdir}/waagent.service.d/ %endif %changelog -* Tue Jul 18 2023 Miroslav Rezanina - 2.7.0.6-9.1.inferit -- Rebuild for BZ 2222947 -- Resolves: bz#2222947 +* Thu May 09 2024 Miroslav Rezanina - 2.7.0.6-10 +- wla-Disable-automatic-log-collector.patch [RHEL-7273] +- Resolves: RHEL-7273 + ([Azure][WALA] Consider to disable Log collector) -* Fri Mar 31 2023 Sergey Cherevko - 2.7.0.6-6.inferit -- Add MSVSphere support -- Debrand and rebuild for MSVSphere 9.1 - -* Wed Mar 15 2023 MSVSphere Packaging Team - 2.7.0.6-6 -- Rebuilt for MSVSphere 9.1. +* Thu Apr 13 2023 MSVSphere Packaging Team - 2.7.0.6-9 +- Rebuilt for MSVSphere 9.2 beta * Wed Feb 08 2023 Miroslav Rezanina - 2.7.0.6-9 - wla-redhat-Adjust-tpm2_createprimary-key-attributes-to-m.patch [bz#2167322]