public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Crha <mcrha@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/malcontent] f45: Add a patch to fix system call filters for signal handling
Date: Mon, 02 Nov 2026 09:23:17 GMT [thread overview]
Message-ID: <179361139757.1.3781160032037714306.rpms-malcontent-d790b6a372f7@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/malcontent
Branch : f45
Commit : d790b6a372f70e2b6c5bceb186e5627ff212d665
Author : Milan Crha <mcrha@redhat.com>
Date : 2026-11-02T10:22:39+01:00
Stats : +87/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/malcontent/c/d790b6a372f70e2b6c5bceb186e5627ff212d665?branch=f45
Log:
Add a patch to fix system call filters for signal handling
---
diff --git a/0001-Fix-system-call-filters-for-signal-handling.patch b/0001-Fix-system-call-filters-for-signal-handling.patch
new file mode 100644
index 0000000..3f6a02d
--- /dev/null
+++ b/0001-Fix-system-call-filters-for-signal-handling.patch
@@ -0,0 +1,84 @@
+From af8226a7d3c3e4b31eb2a114b9c7a666d2b8795b Mon Sep 17 00:00:00 2001
+Date: Sat, 27 Jun 2026 00:53:33 +0200
+Subject: [PATCH] Fix system call filters for signal handling
+
+Due to some slow shutdowns, I noticed that `malcontent-timerd` doesn't
+immediately stop when asked to using, e.g., `systemctl stop
+malcontent-timerd`, but will instead wait for its inactivity timeout to
+be reached. It also completely ignores any signals sent to it via
+`kill`.
+
+Something similar has already been reported here:
+https://github.com/ublue-os/bluefin/issues/4612
+
+After a lot of debugging, I found out that GLib wasn't able to install
+its Unix signal handlers, which caused `malcontent-timerd` to never
+receive `SIGTERM`. This can be checked using `/proc/$PID/status`, which
+will show `SigCgt: 0000000000000000`. Moreover, removing
+`SystemCallErrorNumber=EPERM` causes `malcontent-timerd` to crash in
+`__libc_sigaction`.
+
+This is due to the fact that the relevant signal syscalls are actually
+contained in `@signal`, which is currently missing.
+---
+ .../malcontent-timer-extension-agent.service.in | 2 +-
+ malcontent-timerd/malcontent-timerd.service.in | 2 +-
+ malcontent-webd-update/malcontent-webd-update.service.in | 2 +-
+ malcontent-webd/malcontent-webd.service.in | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/malcontent-timer-extension-agent/malcontent-timer-extension-agent.service.in b/malcontent-timer-extension-agent/malcontent-timer-extension-agent.service.in
+index 4752df2..1c2286c 100644
+--- a/malcontent-timer-extension-agent/malcontent-timer-extension-agent.service.in
++++ b/malcontent-timer-extension-agent/malcontent-timer-extension-agent.service.in
+@@ -47,7 +47,7 @@ RestrictNamespaces=yes
+ RestrictRealtime=yes
+ RestrictSUIDSGID=yes
+ SystemCallErrorNumber=EPERM
+-SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @sync
++SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @signal @sync
+ SystemCallArchitectures=native
+ UMask=0077
+
+diff --git a/malcontent-timerd/malcontent-timerd.service.in b/malcontent-timerd/malcontent-timerd.service.in
+index 8aa7d07..85df850 100644
+--- a/malcontent-timerd/malcontent-timerd.service.in
++++ b/malcontent-timerd/malcontent-timerd.service.in
+@@ -48,7 +48,7 @@ RestrictNamespaces=yes
+ RestrictRealtime=yes
+ RestrictSUIDSGID=yes
+ SystemCallErrorNumber=EPERM
+-SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @sync
++SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @signal @sync
+ # FIXME: Needed to keep nss-myhostname happy (see https://github.com/systemd/systemd/issues/38582):
+ SystemCallFilter=sigprocmask rt_sigprocmask uname
+ SystemCallArchitectures=native
+diff --git a/malcontent-webd-update/malcontent-webd-update.service.in b/malcontent-webd-update/malcontent-webd-update.service.in
+index c84d5fc..39a3fde 100644
+--- a/malcontent-webd-update/malcontent-webd-update.service.in
++++ b/malcontent-webd-update/malcontent-webd-update.service.in
+@@ -48,7 +48,7 @@ RestrictNamespaces=yes
+ RestrictRealtime=yes
+ RestrictSUIDSGID=yes
+ SystemCallErrorNumber=EPERM
+-SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @sync
++SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @signal @sync
+ SystemCallArchitectures=native
+ UMask=0022
+
+diff --git a/malcontent-webd/malcontent-webd.service.in b/malcontent-webd/malcontent-webd.service.in
+index dca403f..d54c0c8 100644
+--- a/malcontent-webd/malcontent-webd.service.in
++++ b/malcontent-webd/malcontent-webd.service.in
+@@ -46,7 +46,7 @@ RestrictNamespaces=yes
+ RestrictRealtime=yes
+ RestrictSUIDSGID=yes
+ SystemCallErrorNumber=EPERM
+-SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @sync flock
++SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @signal @sync flock
+ # FIXME: Needed to keep nss-myhostname happy (see https://github.com/systemd/systemd/issues/38582):
+ SystemCallFilter=sigprocmask rt_sigprocmask uname
+ SystemCallArchitectures=native
+--
+GitLab
+
diff --git a/malcontent.spec b/malcontent.spec
index 39d1cbb..a829c92 100644
--- a/malcontent.spec
+++ b/malcontent.spec
@@ -10,6 +10,9 @@ Source1: https://gitlab.gnome.org/pwithnall/libgsystemservice/-/archive/0
Source2: gvdb.tar.xz
Source3: http://www.corpit.ru/mjt/tinycdb/tinycdb-0.81.tar.gz
+# https://gitlab.freedesktop.org/pwithnall/malcontent/-/merge_requests/322
+Patch: 0001-Fix-system-call-filters-for-signal-handling.patch
+
%gnome_check_version
BuildRequires: gettext
reply other threads:[~2026-11-02 9:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179361139757.1.3781160032037714306.rpms-malcontent-d790b6a372f7@fedoraproject.org \
--to=mcrha@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox