Skip to content

Commit 58612db

Browse files
Patch waagent.conf to add firewall rules (#8335)
Add EnableFirewall flag to waagent.conf to protect access to Azure host node services
1 parent 788cd8f commit 58612db

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

SPECS/WALinuxAgent/WALinuxAgent.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: The Windows Azure Linux Agent
22
Name: WALinuxAgent
33
Version: 2.3.1.1
4-
Release: 3%{?dist}
4+
Release: 4%{?dist}
55
License: ASL 2.0
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
@@ -11,6 +11,7 @@ Source0: https://github.com/Azure/WALinuxAgent/archive/refs/tags/v%{versi
1111
Source1: ephemeral-disk-warning.service
1212
Source2: ephemeral-disk-warning.conf
1313
Source3: ephemeral-disk-warning
14+
Patch0: add_firewall_rules.patch
1415
BuildRequires: python3-distro
1516
BuildRequires: python3-setuptools
1617
BuildRequires: python3-xml
@@ -38,7 +39,7 @@ VMs in the Windows Azure cloud. This package should be installed on Linux disk
3839
images that are built to run in the Windows Azure environment.
3940

4041
%prep
41-
%setup -q -n %{name}-%{version}
42+
%autosetup -n %{name}-%{version} -p1
4243

4344
%pre -p /bin/sh
4445

@@ -90,6 +91,9 @@ python3 setup.py check && python3 setup.py test
9091
%{python3_sitelib}/*
9192

9293
%changelog
94+
* Tue Jan 30 2024 Nan Liu <liunan@microsoft.com> - 2.3.1.1-4
95+
- Patch waagent.conf to add firewall rules to protect access to Azure host node
96+
9397
* Tue Nov 10 2022 Nan Liu <liunan@microsoft.com> - 2.3.1.1-3
9498
- Add ephemeral-disk-warning.service
9599

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 9ac40d805925f130283ed54f3cbb424afad41461 Mon Sep 17 00:00:00 2001
2+
From: Nan Liu <liunan@microsoft.com>
3+
Date: Tue, 30 Jan 2024 17:58:36 +0000
4+
Subject: [PATCH] Add firewall rules to protect access to Azure host node
5+
services
6+
7+
---
8+
config/mariner/waagent.conf | 3 +++
9+
1 file changed, 3 insertions(+)
10+
11+
diff --git a/config/mariner/waagent.conf b/config/mariner/waagent.conf
12+
index 65da131..cda61de 100644
13+
--- a/config/mariner/waagent.conf
14+
+++ b/config/mariner/waagent.conf
15+
@@ -78,3 +78,6 @@ AutoUpdate.GAFamily=Prod
16+
# handling until inVMArtifactsProfile.OnHold is false.
17+
# Default is disabled
18+
# EnableOverProvisioning=n
19+
+
20+
+# Add firewall rules to protect access to Azure host node services
21+
+OS.EnableFirewall=y
22+
--
23+
2.25.1
24+

0 commit comments

Comments
 (0)