From 319887c1687bdcd7926628fcbb0d5bac193c689067245fc3952baf385a8a4eb6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 11 Nov 2022 09:44:44 +0000 Subject: [PATCH] - add irqbalance-systemd-netlink.patch (related to bsc#1205308) OBS-URL: https://build.opensuse.org/package/show/Base:System/irqbalance?expand=0&rev=111 --- irqbalance-systemd-netlink.patch | 28 ++++++++++++++++++++++++++++ irqbalance.changes | 5 +++++ irqbalance.spec | 2 ++ 3 files changed, 35 insertions(+) create mode 100644 irqbalance-systemd-netlink.patch diff --git a/irqbalance-systemd-netlink.patch b/irqbalance-systemd-netlink.patch new file mode 100644 index 0000000..195f25a --- /dev/null +++ b/irqbalance-systemd-netlink.patch @@ -0,0 +1,28 @@ +From efec4c69157d17024c4d9194a63eb834efcd79b9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dirk=20M=C3=BCller?= +Date: Fri, 11 Nov 2022 10:38:19 +0100 +Subject: [PATCH] allow AF_NETLINK in the systemd service restrictions + +AF_NETLINK is needed for communicating with the thermald daemon, +without that the start up logs a warning + + thermal: socket bind failed, thermald may not be running. + +because systemd prevents access to NETLINK. +--- + misc/irqbalance.service | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: irqbalance-1.9.2/misc/irqbalance.service +=================================================================== +--- irqbalance-1.9.2.orig/misc/irqbalance.service ++++ irqbalance-1.9.2/misc/irqbalance.service +@@ -11,7 +11,7 @@ EnvironmentFile=-/path/to/irqbalance.env + ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS + ReadOnlyPaths=/ + ReadWritePaths=/proc/irq +-RestrictAddressFamilies=AF_UNIX ++RestrictAddressFamilies=AF_UNIX AF_NETLINK + RuntimeDirectory=irqbalance/ + LimitNOFILE=4096 + diff --git a/irqbalance.changes b/irqbalance.changes index 5cba897..03a443c 100644 --- a/irqbalance.changes +++ b/irqbalance.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 11 09:44:17 UTC 2022 - Dirk Müller + +- add irqbalance-systemd-netlink.patch (related to bsc#1205308) + ------------------------------------------------------------------- Mon Nov 7 12:23:32 UTC 2022 - Dirk Müller diff --git a/irqbalance.spec b/irqbalance.spec index d903dc6..4b88489 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -30,6 +30,8 @@ URL: https://github.com/Irqbalance/irqbalance Source: https://github.com/Irqbalance/irqbalance/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source3: sysconfig.irqbalance Patch1: Set-fd-limit.patch +# PATCH-FIX-UPSTREAM: https://github.com/Irqbalance/irqbalance/pull/250 +Patch2: irqbalance-systemd-netlink.patch BuildRequires: libcap-ng-devel BuildRequires: libtool BuildRequires: ncurses-devel