From aff586f306d9f7b446c9e18974cd8f5c3b70753e Mon Sep 17 00:00:00 2001 From: Knut Anderssen Date: Fri, 27 Oct 2023 12:32:47 +0100 Subject: [PATCH 1/2] Do a lazy initialization of network and security settings --- .../security_policies/target_config.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/lib/y2security/security_policies/target_config.rb b/src/lib/y2security/security_policies/target_config.rb index 35d96f97..8d589d7f 100644 --- a/src/lib/y2security/security_policies/target_config.rb +++ b/src/lib/y2security/security_policies/target_config.rb @@ -41,17 +41,19 @@ class TargetConfig # @return [Bootloader::BootloaderFactory] attr_accessor :bootloader - # @return [Y2Network::Config] - attr_accessor :network - - # @return [Installation::SecuritySettings, nil] nil if yast2-installation is not available - attr_accessor :security - def initialize @storage = default_devicegraph - @network = default_network_config @bootloader = default_bootloader - @security = default_security_settings + end + + # @return [Y2Network::Config] + def network + default_network_config + end + + # @return [Installation::SecuritySettings, nil] nil if yast2-installation is not available + def security + default_security_settings end # Default devicegraph From 98f768abb7a467cdba839327e429cbd2fc6a9f23 Mon Sep 17 00:00:00 2001 From: Knut Anderssen Date: Mon, 30 Oct 2023 09:11:32 +0000 Subject: [PATCH 2/2] Bump version & changelog --- package/yast2-security.changes | 7 +++++++ package/yast2-security.spec | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package/yast2-security.changes b/package/yast2-security.changes index d166f7c1..5c6d922c 100644 --- a/package/yast2-security.changes +++ b/package/yast2-security.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Oct 30 09:09:26 UTC 2023 - Knut Anderssen + +- Do not load the security settings from the security policy until + needed (bsc#1216615). +- 4.5.7 + ------------------------------------------------------------------- Wed Feb 22 17:28:54 UTC 2023 - Michal Filka diff --git a/package/yast2-security.spec b/package/yast2-security.spec index 9f69d11f..b8a685ef 100644 --- a/package/yast2-security.spec +++ b/package/yast2-security.spec @@ -17,7 +17,7 @@ Name: yast2-security -Version: 4.5.6 +Version: 4.5.7 Release: 0 Group: System/YaST License: GPL-2.0-only