1 Star 0 Fork 33

imxcc/selinux-policy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
add-allow-shadow-tool-to-access-sssd-var-lib-file-di.patch 1008 Bytes
一键复制 编辑 原始数据 按行查看 历史
guoxiaoqi 提交于 2020-06-04 20:48 . add avc for openEuler
From edba62fdaa8115c0c194ad6d86981e8c9692b8e7 Mon Sep 17 00:00:00 2001
From: guoxiaoqi <guoxiaoqi2@huawei.com>
Date: Thu, 4 Jun 2020 21:11:52 +0800
Subject: [PATCH] add allow shadow tool to access sssd var lib file/dir
Signed-off-by: guoxiaoqi <guoxiaoqi2@huawei.com>
---
policy/modules/admin/usermanage.te | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/policy/modules/admin/usermanage.te b/policy/modules/admin/usermanage.te
index 1977309..b8d51ba 100644
--- a/policy/modules/admin/usermanage.te
+++ b/policy/modules/admin/usermanage.te
@@ -666,8 +666,13 @@ optional_policy(`
# avc for openEuler
#sssd_var_lib_dir(groupadd_t)
optional_policy(`
+ sssd_var_lib_dir(groupadd_t)
sssd_var_lib_map_file(groupadd_t)
sssd_var_lib_write_file(groupadd_t)
+ sssd_var_lib_map_file(passwd_t)
+ sssd_var_lib_write_file(passwd_t)
sssd_var_lib_map_file(useradd_t)
sssd_var_lib_write_file(useradd_t)
+ sssd_var_lib_create_file(useradd_t)
+ sssd_var_lib_dir(useradd_t)
')
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/imxcc/selinux-policy.git
git@gitee.com:imxcc/selinux-policy.git
imxcc
selinux-policy
selinux-policy
master

搜索帮助