selinux-policy/backport-Allow-systemd-hostnamed-read-udev-runtime-data.patch

39 lines
1.2 KiB
Diff

From b65f4fd6426b7abb3fa9d73a1e7b8c12092696c6 Mon Sep 17 00:00:00 2001
From: Zdenek Pytela <zpytela@redhat.com>
Date: Tue, 23 Feb 2021 17:51:37 +0100
Subject: [PATCH] Allow systemd-hostnamed read udev runtime data
Required since systemd-248-rc1:
systemd-hostnamed now exports the "HardwareVendor" and "HardwareModel"
D-Bus properties, which are supposed to contain a pair of cleaned up,
human readable strings describing the system's vendor and model. It's
typically sourced from the firmware's DMI tables, but may be augmented
from a new hwdb database. hostnamectl shows this in the status output.
https://github.com/systemd/systemd/blob/v248-rc1/NEWS
Resolves: rhbz#1931959
Signed-off-by: lujie42 <572084868@qq.com>
---
policy/modules/system/systemd.te | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
index adbbd37..abfe2d4 100644
--- a/policy/modules/system/systemd.te
+++ b/policy/modules/system/systemd.te
@@ -849,6 +849,10 @@ optional_policy(`
dbus_connect_system_bus(systemd_hostnamed_t)
')
+optional_policy(`
+ udev_read_pid_files(systemd_hostnamed_t)
+')
+
#######################################
#
# rfkill policy
--
1.8.3.1