加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-config-file-to-deny-noraml-user-to-stop-Setroubleshootd.patch 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
From bf6d97e7f14bdefb7e9e889ae29e29b0d8484a16 Mon Sep 17 00:00:00 2001
From: openEuler Buildteam <buildteam@openeuler.org>
Date: Tue, 15 Dec 2020 14:14:57 +0800
Subject: [PATCH] Fix config file to deny noraml user to stop Setroubleshootd.
---
org.fedoraproject.Setroubleshootd.conf | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/org.fedoraproject.Setroubleshootd.conf b/org.fedoraproject.Setroubleshootd.conf
index 65a0daa..fe0e2f4 100644
--- a/org.fedoraproject.Setroubleshootd.conf
+++ b/org.fedoraproject.Setroubleshootd.conf
@@ -9,12 +9,15 @@
</policy>
<policy user="root">
<allow send_destination="org.fedoraproject.Setroubleshootd"/>
+ <allow send_destination="org.fedoraproject.Setroubleshootd"
+ send_interface="org.fedoraproject.SetroubleshootdIface"
+ send_member="finish"/>
</policy>
<policy context="default">
<allow send_destination="org.fedoraproject.Setroubleshootd"
send_interface="org.fedoraproject.SetroubleshootdIface"
send_member="start"/>
- <allow send_destination="org.fedoraproject.Setroubleshootd"
+ <deny send_destination="org.fedoraproject.Setroubleshootd"
send_interface="org.fedoraproject.SetroubleshootdIface"
send_member="finish"/>
<allow send_destination="org.fedoraproject.Setroubleshootd"
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化