11 Star 1 Fork 29

src-openEuler / selinux-policy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-selinux-label-for-hostname-digest-list.patch 1015 Bytes
一键复制 编辑 原始数据 按行查看 历史
jinlun 提交于 2023-12-28 19:33 . update version to 40.7
From 7d436dc2f9498bc77d55cbd1da0be8233bdc190e Mon Sep 17 00:00:00 2001
From: guoxiaoqi <guoxiaoqi2@huawei.com>
Date: Thu, 4 Jun 2020 20:31:18 +0800
Subject: [PATCH] fix selinux label for hostname digest list
Signed-off-by: guoxiaoqi <guoxiaoqi2@huawei.com>
---
policy/modules/system/systemd.fc | 1 +
1 file changed, 1 insertion(+)
diff --git a/policy/modules/system/systemd.fc b/policy/modules/system/systemd.fc
index cfafbfa..bb5e759 100644
--- a/policy/modules/system/systemd.fc
+++ b/policy/modules/system/systemd.fc
@@ -3,6 +3,7 @@ HOME_DIR/\.config/systemd/user(/.*)? gen_context(system_u:object_r:systemd_unit
/root/\.local/share/systemd(/.*)? gen_context(system_u:object_r:systemd_home_t,s0)
/etc/.*hostname.* -- gen_context(system_u:object_r:hostname_etc_t,s0)
+/etc/[^/]*hostname.* -- gen_context(system_u:object_r:hostname_etc_t,s0)
/etc/machine-info -- gen_context(system_u:object_r:hostname_etc_t,s0)
/etc/udev/.*hwdb.* -- gen_context(system_u:object_r:systemd_hwdb_etc_t,s0)
--
1.8.3.1
1
https://gitee.com/src-openeuler/selinux-policy.git
git@gitee.com:src-openeuler/selinux-policy.git
src-openeuler
selinux-policy
selinux-policy
master

搜索帮助