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

Yan Zhu zhuyan2015 at qq.com
Fri Jun 12 15:58:23 UTC 2026


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-pro
Signed-off-by: Yan Zhu <zhuyan2015 at 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.rst
new file mode 100644
index 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 at 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




More information about the Linux-security-module-archive mailing list