From b1520737b9fac72468c1d3884e61176c28585216 Mon Sep 17 00:00:00 2001 From: Edward Moscardini Date: Mon, 17 Jul 2023 17:19:52 +0100 Subject: [PATCH] enforce executable for ziti binary --- CHANGELOG.md | 10 ++++++++-- router_upgrade.py | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 198fe6f..b7fe947 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.1.0] - 2023-06-29 +## [1.1.2] - 2023-07-17 + +### Added + +- Added enforcing mode to executable for ziti binary + +## [1.1.1] - 2023-06-29 ### Fixed @@ -18,4 +24,4 @@ All notable changes to this project will be documented in this file. The format ## [1.0.0] - 2023-01-09 -- Initial version \ No newline at end of file +- Initial version diff --git a/router_upgrade.py b/router_upgrade.py index 681eca3..5704d3f 100644 --- a/router_upgrade.py +++ b/router_upgrade.py @@ -121,6 +121,7 @@ def download_bundle(ziti_version): if member.name == "ziti": logging.debug("Extracting: %s", member.name) download_file.extract(member, "/opt/netfoundry/ziti/") + os.chmod('/opt/netfoundry/ziti/ziti', 0o755) os.remove(file_name) return None if response.status_code == 404: @@ -345,7 +346,7 @@ def main(): """ Main logic """ - __version__ = '1.1.1' + __version__ = '1.1.2' # Change log # See https://github.com/netfoundry/edge-router-upgrade/blob/main/CHANGELOG.md