Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libselinux for openSUSE:Factory 
checked in at 2022-02-25 21:24:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libselinux (Old)
 and      /work/SRC/openSUSE:Factory/.libselinux.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libselinux"

Fri Feb 25 21:24:45 2022 rev:69 rq:956619 version:3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/libselinux/libselinux.changes    2021-11-15 
15:27:40.153844819 +0100
+++ /work/SRC/openSUSE:Factory/.libselinux.new.1958/libselinux.changes  
2022-02-25 21:24:46.539635562 +0100
@@ -1,0 +2,7 @@
+Tue Feb 15 07:49:43 UTC 2022 - Johannes Segitz <jseg...@suse.com>
+
+- Add Requires for exact libselinux1 version for selinux-tools
+- Simplyfied check for correct boot paramaters in selinux-ready
+  (bsc#1195361)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libselinux-bindings.spec ++++++
--- /var/tmp/diff_new_pack.UqreFZ/_old  2022-02-25 21:24:47.407635515 +0100
+++ /var/tmp/diff_new_pack.UqreFZ/_new  2022-02-25 21:24:47.411635514 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libselinux-bindings
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ libselinux.spec ++++++
--- /var/tmp/diff_new_pack.UqreFZ/_old  2022-02-25 21:24:47.439635513 +0100
+++ /var/tmp/diff_new_pack.UqreFZ/_new  2022-02-25 21:24:47.443635512 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libselinux
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -56,6 +56,7 @@
 Summary:        SELinux command-line utilities
 Group:          System/Base
 Provides:       libselinux-utils = %{version}-%{release}
+Requires:       libselinux1 = %{version}
 
 %description -n selinux-tools
 Security-enhanced Linux is a feature of the kernel and some

++++++ selinux-ready ++++++
--- /var/tmp/diff_new_pack.UqreFZ/_old  2022-02-25 21:24:47.535635508 +0100
+++ /var/tmp/diff_new_pack.UqreFZ/_new  2022-02-25 21:24:47.539635507 +0100
@@ -51,36 +51,16 @@
 
 check_boot()
 {
-       BPARAM1="security=selinux"
-       BPARAM2="selinux=1"
-
        printf "\tcheck_boot: Assuming GRUB2 as bootloader.\n"
 
-       # look for parameters of the current kernel
-       CURRENT_KERNEL=$(uname -r)
-       OTHERS=""
-       RETVAL="FAIL"
-       while read BLINE
-       do
-               K=$(echo $BLINE | awk -F' ' '{print $2}')
-               KERNEL=$(basename $K)
-               K=$(echo $KERNEL | sed s/vmlinuz-//)
-
-               if [ "$K" == "$CURRENT_KERNEL" ]; then
-                       INITRD=initrd-$K
-                       RETVAL="OK"
-               else
-                       OTHERS="$KERNEL $OTHERS"
-               fi
-       done < <(grep -- $BPARAM1 /boot/grub2/grub.cfg 2>/dev/null | grep -- 
$BPARAM2)
-
-       if [ "$RETVAL" == OK ]; then
-               printf "\tcheck_boot: OK. Current kernel '$KERNEL' has 
boot-parameters '$BPARAM1 $BPARAM2'\n"
-               printf "\tcheck_boot: OK. Other kernels with correct 
parameters: $OTHERS\n"
+       BPARAM1="security=selinux"
+       BPARAM2="selinux=1"
+       if grep $BPARAM1 /proc/cmdline | grep $BPARAM2 >/dev/null; then
+               printf "\tcheck_boot: OK. Current kernel has boot-parameters 
'$BPARAM1 $BPARAM2'\n"
                return 0
        else
                printf "\tcheck_boot: ERR. Boot-parameter missing for booting 
the kernel.\n"
-               printf "\t            Please use YaST2 to add 'security=selinux 
selinux=1' to the kernel boot-parameter list.\n"
+               printf "\t            Please add 'security=selinux selinux=1' 
to the kernel boot-parameter list.\n"
                return 1
        fi
 }

Reply via email to