Backport an upstream fix for upower not having access to udev events
This commit is contained in:
parent
0b66595307
commit
6e20417f1c
@ -0,0 +1,32 @@
|
||||
From fe356951a9d45fee73036aaa72661f0319dffba3 Mon Sep 17 00:00:00 2001
|
||||
From: Bastien Nocera <hadess@hadess.net>
|
||||
Date: Tue, 21 Aug 2018 13:30:44 +0200
|
||||
Subject: [PATCH] daemon: Fix upower not having access to udev events
|
||||
|
||||
PrivateNetwork=true will cut off upower from the udev netlink socket, so
|
||||
it's not what we want to use, as we want those events.
|
||||
|
||||
See https://lists.freedesktop.org/archives/systemd-devel/2018-July/041000.html
|
||||
|
||||
Closes: #68
|
||||
---
|
||||
src/upower.service.in | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/upower.service.in b/src/upower.service.in
|
||||
index 835529a..8838655 100644
|
||||
--- a/src/upower.service.in
|
||||
+++ b/src/upower.service.in
|
||||
@@ -17,7 +17,8 @@ ProtectHome=true
|
||||
PrivateTmp=true
|
||||
|
||||
# Network
|
||||
-PrivateNetwork=true
|
||||
+# PrivateNetwork=true would block udev's netlink socket
|
||||
+RestrictAddressFamilies=AF_UNIX AF_NETLINK
|
||||
|
||||
# Execute Mappings
|
||||
MemoryDenyWriteExecute=true
|
||||
--
|
||||
2.19.0
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
Summary: Power Management Service
|
||||
Name: upower
|
||||
Version: 0.99.8
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Libraries
|
||||
URL: http://upower.freedesktop.org/
|
||||
Source0: https://gitlab.freedesktop.org/upower/upower/uploads/9125ab7ee96fdc4ecc68cfefb50c1cab/%{name}-%{version}.tar.xz
|
||||
# Backported from upstream
|
||||
Patch0: 0001-daemon-Fix-upower-not-having-access-to-udev-events.patch
|
||||
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: libtool
|
||||
@ -107,6 +109,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
%{_datadir}/gtk-doc/html/UPower/*
|
||||
|
||||
%changelog
|
||||
* Sun Oct 07 2018 Kalev Lember <klember@redhat.com> - 0.99.8-3
|
||||
- Backport an upstream fix for upower not having access to udev events
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user