Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-security for openSUSE:Factory checked in at 2022-08-23 14:26:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-security (Old) and /work/SRC/openSUSE:Factory/.yast2-security.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-security" Tue Aug 23 14:26:00 2022 rev:117 rq:998796 version:4.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-security/yast2-security.changes 2022-04-14 17:25:09.623241994 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-security.new.2083/yast2-security.changes 2022-08-23 14:26:54.059259700 +0200 @@ -1,0 +2,7 @@ +Tue Aug 23 08:41:45 UTC 2022 - David Diaz <dgonza...@suse.com> + +- Do not crash when reading active LSM modules returns nil + (related to jsc#SLE-22069) +- 4.5.1 + +------------------------------------------------------------------- Old: ---- yast2-security-4.5.0.tar.bz2 New: ---- yast2-security-4.5.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-security.spec ++++++ --- /var/tmp/diff_new_pack.Bru90v/_old 2022-08-23 14:26:54.523260721 +0200 +++ /var/tmp/diff_new_pack.Bru90v/_new 2022-08-23 14:26:54.527260730 +0200 @@ -17,7 +17,7 @@ Name: yast2-security -Version: 4.5.0 +Version: 4.5.1 Release: 0 Summary: YaST2 - Security Configuration License: GPL-2.0-only ++++++ yast2-security-4.5.0.tar.bz2 -> yast2-security-4.5.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-security-4.5.0/package/yast2-security.changes new/yast2-security-4.5.1/package/yast2-security.changes --- old/yast2-security-4.5.0/package/yast2-security.changes 2022-04-12 13:37:54.000000000 +0200 +++ new/yast2-security-4.5.1/package/yast2-security.changes 2022-08-23 12:02:06.000000000 +0200 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Aug 23 08:41:45 UTC 2022 - David Diaz <dgonza...@suse.com> + +- Do not crash when reading active LSM modules returns nil + (related to jsc#SLE-22069) +- 4.5.1 + +------------------------------------------------------------------- Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> - Bump version to 4.5.0 (bsc#1198109) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-security-4.5.0/package/yast2-security.spec new/yast2-security-4.5.1/package/yast2-security.spec --- old/yast2-security-4.5.0/package/yast2-security.spec 2022-04-12 13:37:54.000000000 +0200 +++ new/yast2-security-4.5.1/package/yast2-security.spec 2022-08-23 12:02:06.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-security -Version: 4.5.0 +Version: 4.5.1 Release: 0 Group: System/YaST License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-security-4.5.0/src/lib/y2security/lsm/config.rb new/yast2-security-4.5.1/src/lib/y2security/lsm/config.rb --- old/yast2-security-4.5.0/src/lib/y2security/lsm/config.rb 2022-04-12 13:37:54.000000000 +0200 +++ new/yast2-security-4.5.1/src/lib/y2security/lsm/config.rb 2022-08-23 12:02:06.000000000 +0200 @@ -126,7 +126,7 @@ def active return [] unless Yast::Stage.normal - modules = Yast::SCR.Read(Yast.path(".target.string"), RUNNING_PATH) + modules = Yast::SCR.Read(Yast.path(".target.string"), RUNNING_PATH).to_s modules.split(",").each_with_object([]) do |name, result| supported_module = supported.find { |m| m.id.to_s == name } result << supported_module if supported_module diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-security-4.5.0/test/y2security/lsm/config_test.rb new/yast2-security-4.5.1/test/y2security/lsm/config_test.rb --- old/yast2-security-4.5.0/test/y2security/lsm/config_test.rb 2022-04-12 13:37:54.000000000 +0200 +++ new/yast2-security-4.5.1/test/y2security/lsm/config_test.rb 2022-08-23 12:02:06.000000000 +0200 @@ -66,6 +66,14 @@ expect(active.first.id).to eql(:selinux) end + context "when there are no active LSM modules" do + let(:active_modules) { nil } + + it "returns an empty array" do + expect(subject.active).to eq([]) + end + end + context "when no supported LSM is active" do let(:active_modules) { "lockdown,capabilities,tomoyo" }