0 Star 0 Fork 33

lixiao/selinux-policy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Update-chronyd_pid_filetrans-to-allow-create-dirs.patch 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
lujie54 提交于 2022-09-13 20:45 . update upstream patches
From d251c0553ecc432f0aa8a6769e76795902b9ebcd Mon Sep 17 00:00:00 2001
From: Zdenek Pytela <zpytela@redhat.com>
Date: Tue, 8 Feb 2022 18:33:51 +0100
Subject: [PATCH] Update chronyd_pid_filetrans() to allow create dirs
Reference: https://gitbub.com/fedora-selinux/selinux-policy/commit/d251c0553ecc432f0aa8a6769e76795902b9ebcd
Conflict: NA
The chronyd_pid_filetrans() interface was updated so that the caller
domain is now allowed to create the /run/chrony-dhcp directory.
Signed-off-by: lujie54 <lujie54@huawei.com>
---
policy/modules/contrib/chronyd.if | 1 +
1 file changed, 1 insertion(+)
diff --git a/policy/modules/contrib/chronyd.if b/policy/modules/contrib/chronyd.if
index 3d47264..cad4d31 100644
--- a/policy/modules/contrib/chronyd.if
+++ b/policy/modules/contrib/chronyd.if
@@ -252,6 +252,7 @@ interface(`chronyd_pid_filetrans',`
type chronyd_var_run_t;
')
+ create_dirs_pattern($1, chronyd_var_run_t, chronyd_var_run_t)
files_pid_filetrans($1, chronyd_var_run_t, dir, "chrony-dhcp")
')
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lixiao2023/selinux-policy.git
git@gitee.com:lixiao2023/selinux-policy.git
lixiao2023
selinux-policy
selinux-policy
master

搜索帮助