Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fnott for openSUSE:Factory checked 
in at 2023-10-13 23:15:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fnott (Old)
 and      /work/SRC/openSUSE:Factory/.fnott.new.20540 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fnott"

Fri Oct 13 23:15:45 2023 rev:7 rq:1117676 version:1.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/fnott/fnott.changes      2023-07-26 
13:25:04.220407533 +0200
+++ /work/SRC/openSUSE:Factory/.fnott.new.20540/fnott.changes   2023-10-13 
23:16:40.803393721 +0200
@@ -1,0 +2,9 @@
+Fri Oct 13 13:12:31 UTC 2023 - Soc Virnyl Estela 
<socvirnyl.est...@uncomfyhalomacro.pl>
+
+- Add 0001-memfd-noexec-seal.patch
+  * newer kernels introduced MFD_NOEXEC_SEAL. Linux kernels older than
+    6.3 will crash fnott because they will reject memfd_create() calls that 
set it.
+    This patch fixes it by testing first if it works with the new 
MFD_NOEXEC_SEAL
+    and then retry without it.
+
+-------------------------------------------------------------------

New:
----
  0001-memfd-noexec-seal.patch

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

Other differences:
------------------
++++++ fnott.spec ++++++
--- /var/tmp/diff_new_pack.hHC3YI/_old  2023-10-13 23:16:41.247410457 +0200
+++ /var/tmp/diff_new_pack.hHC3YI/_new  2023-10-13 23:16:41.247410457 +0200
@@ -24,6 +24,7 @@
 Group:          System/GUI/Other
 URL:            https://codeberg.org/dnkl/fnott
 Source0:        https://codeberg.org/dnkl/fnott/archive/%{version}.tar.gz
+Patch1:         
https://codeberg.org/dnkl/fnott/commit/bc80e607b14e4c25639d9414e646bbaa7d534adc.patch#/0001-memfd-noexec-seal.patch
 BuildRequires:  meson >= 0.58
 BuildRequires:  pkgconfig
 BuildRequires:  python3

++++++ 0001-memfd-noexec-seal.patch ++++++
>From bc80e607b14e4c25639d9414e646bbaa7d534adc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= <dan...@ekloef.se>
Date: Sun, 8 Oct 2023 11:10:00 +0200
Subject: [PATCH] shm: create memfd with MFD_NOEXEC_SEAL

---
 shm.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/shm.c b/shm.c
index e21a0d7..5e51edc 100644
--- a/shm.c
+++ b/shm.c
@@ -15,6 +15,12 @@
 #include "log.h"
 #include "stride.h"
 
+#if defined(MFD_NOEXEC_SEAL)
+    #define FNOTT_MFD_FLAGS (MFD_CLOEXEC | MFD_ALLOW_SEALING | MFD_NOEXEC_SEAL)
+#else
+    #define FNOTT_MFD_FLAGS (MFD_CLOEXEC | MFD_ALLOW_SEALING)
+#endif
+
 static tll(struct buffer) buffers;
 
 static void
@@ -64,7 +70,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height)
 
     /* Backing memory for SHM */
 #if defined(MEMFD_CREATE)
-    pool_fd = memfd_create("fnott-wayland-shm-buffer-pool", MFD_CLOEXEC);
+    pool_fd = memfd_create("fnott-wayland-shm-buffer-pool", FNOTT_MFD_FLAGS);
 #elif defined(__FreeBSD__)
     // memfd_create on FreeBSD 13 is SHM_ANON without sealing support
     pool_fd = shm_open(SHM_ANON, O_RDWR | O_CLOEXEC, 0600);

Reply via email to