[PATCH 04/10] docs/zh_CN: add LSM/SELinux Chinese translation

Waiting for review
From:Yan Zhu <zhuyan2015@qq.com>
Date:
Message-ID:<tencent_03EFCA2E14961D59A37729478C633B085008@qq.com>
Patch:v1 · 4/10
Language:zh_CN
Patch-ID:010a83ac64ec24ba2dd239fc1ed734c207a86976
Files:Documentation/translations/zh_CN/admin-guide/LSM/SELinux.rst

Patch content 1 changed file

Translate Documentation/admin-guide/LSM/SELinux.rst into Chinese. Update the translation through commit 17bd3c01667a("documentation: add links to SELinux resources") Assisted-by: Claude:deepseek-4-proSigned-off-by: Yan Zhu <zhuyan2015@qq.com>--- .../zh_CN/admin-guide/LSM/SELinux.rst         | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/translations/zh_CN/admin-guide/LSM/SELinux.rst diff --git a/Documentation/translations/zh_CN/admin-guide/LSM/SELinux.rst b/Documentation/translations/zh_CN/admin-guide/LSM/SELinux.rstnew file mode 100644index 000000000000..4962c7c24ec2--- /dev/null+++ b/Documentation/translations/zh_CN/admin-guide/LSM/SELinux.rst@@ -0,0 +1,45 @@+.. SPDX-License-Identifier: GPL-2.0+.. include:: ../../disclaimer-zh_CN.rst++:Original: Documentation/admin-guide/LSM/SELinux.rst+:翻译:+ 朱岩 Yan Zhu <zhuyan2015@qq.com>+++=======+SELinux+=======++关于 SELinux 内核子系统的信息可以在以下链接获取:++    https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git/tree/README.md++    https://github.com/selinuxproject/selinux-kernel/wiki++关于 SELinux 用户空间的资料可以在以下地址找到:++    https://github.com/SELinuxProject/selinux/wiki++如果你想使用 SELinux,通常需要使用发行版提供的策略,或者从以下地址获取最新的+参考策略:++    https://github.com/SELinuxProject/refpolicy++如果你仅需安装一个用于测试的示例策略,可以使用位于 scripts/selinux 下的+``mdp`` 工具。注意这要求系统已经安装了 SELinux 用户空间工具,尤其需要+``checkpolicy`` 来编译内核策略,以及 ``setfiles`` 和 ``fixfiles`` 来为文件系+统打标签。++    1. 编译内核并启用 SELinux。+    2. 运行 ``make`` 编译 ``mdp``。+    3. 确认当前未启用 SELinux 且未加载真实策略。+       如果已启用,请在继续前重启并在 SELinux 已禁用状态下操作。+    4. 执行 ``install_policy.sh``::++        cd scripts/selinux+        sh install_policy.sh++第 4 步会为当前内核生成一个新的示例策略,包含单一的 SELinux 用户、角色和类型。+它会编译该策略,将 ``SELINUXTYPE`` 设置为 ``dummy``+(写入 ``/etc/selinux/config``),并将策略以 ``dummy`` 名称安装,同时重新标+记文件系统。-- 2.43.0