From 735280d0ebbefd30400457037e14d66fac69c17f Mon Sep 17 00:00:00 2001 From: LO Date: Tue, 21 Oct 2025 23:13:11 +0800 Subject: [PATCH] Fixed undefeined transition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [修复]修复未定义域的转换 --- .../selinux/refpolicy-targeted_%.bbappend | 3 ++- .../ZXOS-1109113-FIX-UNCONFINED-PORCESS.patch | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 recipes-security/selinux/zx-policy/ZXOS-1109113-FIX-UNCONFINED-PORCESS.patch diff --git a/recipes-security/selinux/refpolicy-targeted_%.bbappend b/recipes-security/selinux/refpolicy-targeted_%.bbappend index ddbefa7..e8d1d25 100644 --- a/recipes-security/selinux/refpolicy-targeted_%.bbappend +++ b/recipes-security/selinux/refpolicy-targeted_%.bbappend @@ -2,4 +2,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/zx-policy:" # 添加补丁(因已声明搜索路径,直接写补丁文件名即可) -SRC_URI:append = " file://ZXOS-1098584-Fixed-undefined-operations.patch " \ No newline at end of file +SRC_URI:append = " file://ZXOS-1098584-Fixed-undefined-operations.patch " +SRC_URI:append = " file://ZXOS-1109113-FIX-UNCONFINED-PORCESS.patch " diff --git a/recipes-security/selinux/zx-policy/ZXOS-1109113-FIX-UNCONFINED-PORCESS.patch b/recipes-security/selinux/zx-policy/ZXOS-1109113-FIX-UNCONFINED-PORCESS.patch new file mode 100644 index 0000000..090b185 --- /dev/null +++ b/recipes-security/selinux/zx-policy/ZXOS-1109113-FIX-UNCONFINED-PORCESS.patch @@ -0,0 +1,19 @@ +From 5b41aad3300283e081eccc42b66c63e309c6aa47 Mon Sep 17 00:00:00 2001 +From: wangchangjiang +Date: Tue, 21 Oct 2025 22:59:21 +0800 +Subject: [PATCH] ZXOS-1109113 FIX UNCONFINED PORCESS + +--- + config/appconfig-mcs/failsafe_context | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/config/appconfig-mcs/failsafe_context b/config/appconfig-mcs/failsafe_context +index a50bde775..2f96c9fda 100644 +--- a/config/appconfig-mcs/failsafe_context ++++ b/config/appconfig-mcs/failsafe_context +@@ -1 +1 @@ +-unconfined_r:unconfined_t:s0 ++sysadm_r:sysadm_t +-- +2.25.1 + -- Gitee