Hello community,

here is the log from the commit of package yast2-security for openSUSE:Factory 
checked in at 2020-11-02 09:38:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-security (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-security.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-security"

Mon Nov  2 09:38:11 2020 rev:96 rq:844546 version:4.3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-security/yast2-security.changes    
2020-08-14 13:10:30.169237025 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-security.new.3463/yast2-security.changes  
2020-11-02 09:38:30.789501674 +0100
@@ -1,0 +2,7 @@
+Tue Oct 27 13:26:57 CET 2020 - [email protected]
+
+- AY-Import: Translate <enable_sysrq> setting to <kernel.sysrq>
+  with the correct value format (bsc#1177720).
+- 4.3.4
+
+-------------------------------------------------------------------

Old:
----
  yast2-security-4.3.3.tar.bz2

New:
----
  yast2-security-4.3.4.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-security.spec ++++++
--- /var/tmp/diff_new_pack.93oV3f/_old  2020-11-02 09:38:31.377502238 +0100
+++ /var/tmp/diff_new_pack.93oV3f/_new  2020-11-02 09:38:31.381502242 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-security
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,17 +12,17 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           yast2-security
-Version:        4.3.3
+Version:        4.3.4
 Release:        0
 Summary:        YaST2 - Security Configuration
 License:        GPL-2.0-only
 Group:          System/YaST
-Url:            https://github.com/yast/yast-security
+URL:            https://github.com/yast/yast-security
 
 Source0:        %{name}-%{version}.tar.bz2
 

++++++ yast2-security-4.3.3.tar.bz2 -> yast2-security-4.3.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-security-4.3.3/.rubocop.yml 
new/yast2-security-4.3.4/.rubocop.yml
--- old/yast2-security-4.3.3/.rubocop.yml       2020-08-13 13:13:17.000000000 
+0200
+++ new/yast2-security-4.3.4/.rubocop.yml       2020-10-28 13:22:15.000000000 
+0100
@@ -189,7 +189,7 @@
 # Offense count: 1
 # Configuration parameters: CountComments.
 Metrics/ClassLength:
-  Max: 634
+  Max: 650
 
 # Offense count: 19
 Metrics/CyclomaticComplexity:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-security-4.3.3/package/yast2-security.changes 
new/yast2-security-4.3.4/package/yast2-security.changes
--- old/yast2-security-4.3.3/package/yast2-security.changes     2020-08-13 
13:13:17.000000000 +0200
+++ new/yast2-security-4.3.4/package/yast2-security.changes     2020-10-28 
13:22:15.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue Oct 27 13:26:57 CET 2020 - [email protected]
+
+- AY-Import: Translate <enable_sysrq> setting to <kernel.sysrq>
+  with the correct value format (bsc#1177720).
+- 4.3.4
+
+-------------------------------------------------------------------
 Thu Aug 13 10:00:58 UTC 2020 - Ladislav Slezák <[email protected]>
 
 - Fixed randomly failing unit tests, do not query the installed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-security-4.3.3/package/yast2-security.spec 
new/yast2-security-4.3.4/package/yast2-security.spec
--- old/yast2-security-4.3.3/package/yast2-security.spec        2020-08-13 
13:13:17.000000000 +0200
+++ new/yast2-security-4.3.4/package/yast2-security.spec        2020-10-28 
13:22:15.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-security
-Version:        4.3.3
+Version:        4.3.4
 Release:        0
 Group:          System/YaST
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-security-4.3.3/src/modules/Security.rb 
new/yast2-security-4.3.4/src/modules/Security.rb
--- old/yast2-security-4.3.3/src/modules/Security.rb    2020-08-13 
13:13:17.000000000 +0200
+++ new/yast2-security-4.3.4/src/modules/Security.rb    2020-10-28 
13:22:15.000000000 +0100
@@ -41,10 +41,14 @@
     include Yast::Logger
     include ::Security::CtrlAltDelConfig
 
-    SYSCTL_VALUES = {
+    SYSCTL_VALUES_TO_BOOLEAN = {
       "yes" => true,
       "no"  => false
     }
+    SYSCTL_VALUES_TO_INTSTRING = {
+      "yes" => "1",
+      "no"  => "0"
+    }
 
     SHADOW_ATTRS = [
       "FAIL_DELAY",
@@ -784,9 +788,15 @@
           tmpSettings[k] = settings[k]
         else
           if @sysctl.key?(k) && settings.key?(@sysctl2sysconfig[k])
+            # using the old sysconfig AY format
             val = settings[@sysctl2sysconfig[k]].to_s
-            tmpSettings[k] = SYSCTL_VALUES.key?(val) ? SYSCTL_VALUES[val] : val
+            if @sysctl[k].is_a?(TrueClass) || @sysctl[k].is_a?(FalseClass)
+              tmpSettings[k] = SYSCTL_VALUES_TO_BOOLEAN.key?(val) ? 
SYSCTL_VALUES_TO_BOOLEAN[val] : val
+            else
+              tmpSettings[k] = SYSCTL_VALUES_TO_INTSTRING.key?(val) ? 
SYSCTL_VALUES_TO_INTSTRING[val] : val
+            end
           else
+            # using old login defs settings ?
             tmpSettings[k] = settings[@obsolete_login_defs[k]] || v
           end
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-security-4.3.3/test/security_test.rb 
new/yast2-security-4.3.4/test/security_test.rb
--- old/yast2-security-4.3.3/test/security_test.rb      2020-08-13 
13:13:17.000000000 +0200
+++ new/yast2-security-4.3.4/test/security_test.rb      2020-10-28 
13:22:15.000000000 +0100
@@ -782,6 +782,12 @@
           expect(Security.Settings["SYS_GID_MIN"]).to eql("150")
         end
 
+        it "imports enable_sysrq settings transforming key name" do
+          expect(Security.Import("enable_sysrq" => "no")).to eql(true)
+
+          expect(Security.Settings["kernel.sysrq"]).to eql("0")
+        end
+
         it "does not modify not given settings" do
           expect(Security.Import("EXTRA_SERVICES" => "yes")).to eql(true)
 


Reply via email to