0 Star 0 Fork 33

lixiao/selinux-policy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-blueman-mechanism-can-read-.local-lib-python-site-pa.patch 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
lujie42 提交于 2022-11-27 22:53 . update upstream patches
From 284df66be2e1432333b8134606b30fd76c877123 Mon Sep 17 00:00:00 2001
From: Milos Malik <mmalik@redhat.com>
Date: Wed, 7 Sep 2022 09:57:13 +0200
Subject: [PATCH] blueman-mechanism can read ~/.local/lib/python*/site-packages
directory
If the ~/.local/lib/python*/site-packages/ directory exists in root's
home directory then the blueman-mechanism service tries to read that
directory during its start.
The blueman-mechanism program is written in Python and I believe that
Python is trying to find locally installed python modules.
In order to avoid these SELinux denials, SELinux policy should allow
the access.
Resolves: BZ#2027044
Signed-off-by: lujie42 <lujie54@huawei.com>
---
policy/modules/contrib/blueman.te | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/policy/modules/contrib/blueman.te b/policy/modules/contrib/blueman.te
index 4389ad441..305c5270c 100644
--- a/policy/modules/contrib/blueman.te
+++ b/policy/modules/contrib/blueman.te
@@ -93,7 +93,7 @@ optional_policy(`
')
optional_policy(`
- gnome_search_gconf(blueman_t)
+ gnome_search_gconf_data_dir(blueman_t)
')
optional_policy(`
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lixiao2023/selinux-policy.git
git@gitee.com:lixiao2023/selinux-policy.git
lixiao2023
selinux-policy
selinux-policy
master

搜索帮助