加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Allow-systemd-hostnamed-read-udev-runtime-data.patch 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化