Accepting request 1035191 from Base:System

- add irqbalance-systemd-netlink.patch (related to bsc#1205308)

OBS-URL: https://build.opensuse.org/request/show/1035191
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/irqbalance?expand=0&rev=69
This commit is contained in:
Dominique Leuenberger 2022-11-12 16:40:25 +00:00 committed by Git OBS Bridge
commit c3329f0329
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From efec4c69157d17024c4d9194a63eb834efcd79b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dirk=20M=C3=BCller?= <dirk@dmllr.de>
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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 11 09:44:17 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add irqbalance-systemd-netlink.patch (related to bsc#1205308)
-------------------------------------------------------------------
Mon Nov 7 12:23:32 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -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