Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libselinux for openSUSE:Factory 
checked in at 2026-06-03 20:20:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libselinux (Old)
 and      /work/SRC/openSUSE:Factory/.libselinux.new.1937 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libselinux"

Wed Jun  3 20:20:31 2026 rev:91 rq:1356682 version:3.10

Changes:
--------
+++ only whitespace diff in changes, re-diffing
--- /work/SRC/openSUSE:Factory/libselinux/libselinux.changes    2026-05-16 
19:24:14.933358832 +0200
+++ /work/SRC/openSUSE:Factory/.libselinux.new.1937/libselinux.changes  
2026-06-03 20:20:33.096531783 +0200
@@ -1,0 +2,8 @@
+Tue Jun  2 10:39:50 UTC 2026 - Cathy Hu <[email protected]>
+
+- Add patch for restorecon to log error on readonly fs (bsc#1232226)
+  - Patch: restorecon-Only-log-error-on-readonly-fs-bsc-1232226.patch
+  - Can be dropped with the next toolchain release:
+    
https://github.com/SELinuxProject/selinux/commit/fd411d50ba1cb3e8ad5f8ce4e3c9bc7fcbe4340c
+
+-------------------------------------------------------------------

New:
----
  restorecon-Only-log-error-on-readonly-fs-bsc-1232226.patch

----------(New B)----------
  New:/work/SRC/openSUSE:Factory/.libselinux.new.1937/libselinux.changes-- Add 
patch for restorecon to log error on readonly fs (bsc#1232226)
/work/SRC/openSUSE:Factory/.libselinux.new.1937/libselinux.changes:  - Patch: 
restorecon-Only-log-error-on-readonly-fs-bsc-1232226.patch
/work/SRC/openSUSE:Factory/.libselinux.new.1937/libselinux.changes-  - Can be 
dropped with the next toolchain release:
----------(New E)----------

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

Other differences:
------------------
++++++ libselinux.spec ++++++
--- /var/tmp/diff_new_pack.SSAbTx/_old  2026-06-03 20:20:34.752600484 +0200
+++ /var/tmp/diff_new_pack.SSAbTx/_new  2026-06-03 20:20:34.756600650 +0200
@@ -37,6 +37,8 @@
 Patch6:         python3.8-compat.patch
 Patch7:         swig4_moduleimport.patch
 Patch8:         man_selinux_disabled_mismatch_kernel_config.patch
+# PATCH-FIX-UPSTREAM 
restorecon-Only-log-error-on-readonly-fs-bsc-1232226.patch bsc#1232226 -- based 
on commit fd411d50ba1cb3e8ad5f8ce4e3c9bc7fcbe4340c -- [email protected]
+Patch9:         restorecon-Only-log-error-on-readonly-fs-bsc-1232226.patch
 BuildRequires:  fdupes
 BuildRequires:  libsepol-devel >= %{libsepol_ver}
 BuildRequires:  libsepol-devel-static >= %{libsepol_ver}



++++++ restorecon-Only-log-error-on-readonly-fs-bsc-1232226.patch ++++++
--- libselinux/src/selinux_restorecon.c
+++ libselinux/src/selinux_restorecon.c
@@ -767,10 +767,14 @@ static int restorecon_sb(const char *pathname, const 
struct stat *sb,
                if (!flags->nochange) {
                        if (lsetfilecon(pathname, newcon) < 0) {
                                /* Ignore files removed during relabeling if 
ignore_noent is set */
-                               if (flags->ignore_noent && errno == ENOENT)
+                               if (flags->ignore_noent && errno == ENOENT) {
                                        goto out;
-                               else
+                               } else if (errno == EROFS) {
+                                       selinux_log(SELINUX_INFO, "Read only 
filesystem, relabel not possible: %s\n", pathname);
+                                       goto out;
+                               } else {
                                        goto err;
+                               }
                        }
 
                        updated = true;

Reply via email to