1 Star 0 Fork 35

王歌/selinux-policy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Label-var-run-ecblp0-pipe-with-cupsd_var_run_t.patch 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
lujie54 提交于 2022-09-15 09:20 +08:00 . backport upstream patches
From a203bc37147e4480375faebc76021e7548790c70 Mon Sep 17 00:00:00 2001
From: Zdenek Pytela <zpytela@redhat.com>
Date: Mon, 14 Mar 2022 14:20:15 +0100
Subject: [PATCH] Label /var/run/ecblp0 pipe with cupsd_var_run_t
Reference: https://gitbub.com/fedora-selinux/selinux-policy/commit/a203bc37147e4480375faebc76021e7548790c70
Conflict: NA
With the edce3e31ec2 (Label /var/run/ecblp0 as cupsd_var_run_t) commit,
default file context for /var/run/ecblp0 was defined for a plain file
instead of a named pipe which is actually used by epson drivers.
Resolves: rhbz#2061427
Signed-off-by: lujie54 <lujie54@huawei.com>
---
policy/modules/contrib/cups.fc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/policy/modules/contrib/cups.fc b/policy/modules/contrib/cups.fc
index f09217f..467eb7e 100644
--- a/policy/modules/contrib/cups.fc
+++ b/policy/modules/contrib/cups.fc
@@ -70,7 +70,7 @@
/var/ekpd(/.*)? gen_context(system_u:object_r:cupsd_var_run_t,s0)
/var/run/cups(/.*)? gen_context(system_u:object_r:cupsd_var_run_t,mls_systemhigh)
/var/run/hplip(/.*) gen_context(system_u:object_r:cupsd_var_run_t,s0)
-/var/run/ecblp0 -- gen_context(system_u:object_r:cupsd_var_run_t,s0)
+/var/run/ecblp0 -p gen_context(system_u:object_r:cupsd_var_run_t,s0)
/var/run/hp.*\.pid -- gen_context(system_u:object_r:cupsd_var_run_t,s0)
/var/run/hp.*\.port -- gen_context(system_u:object_r:cupsd_var_run_t,s0)
/var/run/ptal-printd(/.*)? gen_context(system_u:object_r:ptal_var_run_t,s0)
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wang--ge/selinux-policy.git
git@gitee.com:wang--ge/selinux-policy.git
wang--ge
selinux-policy
selinux-policy
master

搜索帮助