加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Allow-tumblerd-write-to-session_dbusd-tmp-socket-fil.patch 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
lujie54 提交于 2022-09-13 20:45 . update upstream patches
From d9bf0729b58d4e3c0c66015961013c1cb64c4a24 Mon Sep 17 00:00:00 2001
From: Zdenek Pytela <zpytela@redhat.com>
Date: Thu, 20 Jan 2022 17:15:18 +0100
Subject: [PATCH] Allow tumblerd write to session_dbusd tmp socket files
Reference: https://gitbub.com/fedora-selinux/selinux-policy/commit/d9bf0729b58d4e3c0c66015961013c1cb64c4a24
Conflict: NA
Addresses the following AVC denial:
type=AVC msg=audit(1642635456.954:3314): avc: denied { write } for pid=104519 comm="tumblerd" name="bus" dev="tmpfs" ino=40 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:session_dbusd_tmp_t:s0 tclass=sock_file permissive=0
Resolves: rhbz#2042696
Signed-off-by: lujie54 <lujie54@huawei.com>
---
policy/modules/contrib/thumb.te | 1 +
1 file changed, 1 insertion(+)
diff --git a/policy/modules/contrib/thumb.te b/policy/modules/contrib/thumb.te
index 0444a36..27eb72c 100644
--- a/policy/modules/contrib/thumb.te
+++ b/policy/modules/contrib/thumb.te
@@ -146,6 +146,7 @@ optional_policy(`
dbus_stream_connect_session_bus(thumb_t)
dbus_chat_session_bus(thumb_t)
dbus_system_bus_client(thumb_t)
+ dbus_write_session_tmp_sock_files(thumb_t)
')
optional_policy(`
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化