1 Star 0 Fork 36

hyongkang/selinux-policy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Add-permission-open-to-files_read_inherited_tmp_file.patch 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 9c55448c7d59ea537fe8ee9e89b6196a6562ef5f Mon Sep 17 00:00:00 2001
From: luhuaxin <luhuaxin1@huawei.com>
Date: Thu, 28 Apr 2022 17:10:37 +0800
Subject: [PATCH] Add permission open to files_read_inherited_tmp_file
The open permission is deleted from upstream. We add it for
compatibility with historical release versions.
Signed-off-by: luhuaxin <luhuaxin1@huawei.com>
---
policy/modules/kernel/files.if | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if
index bca6f15..498c252 100644
--- a/policy/modules/kernel/files.if
+++ b/policy/modules/kernel/files.if
@@ -6428,7 +6428,7 @@ interface(`files_read_inherited_tmp_files',`
attribute tmpfile;
')
- allow $1 tmpfile:file { append read_inherited_file_perms };
+ allow $1 tmpfile:file { append open read_inherited_file_perms };
')
########################################
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hyongkang/selinux-policy.git
git@gitee.com:hyongkang/selinux-policy.git
hyongkang
selinux-policy
selinux-policy
master

搜索帮助

371d5123 14472233 46e8bd33 14472233