10.3. Transferring SELinux settings to another system with semanage


Use the following steps for transferring your custom and verified SELinux settings between RHEL 10-based systems.

Prerequisites

  • The policycoreutils-python-utils package is installed on your system.

Procedure

  1. Export your verified SELinux settings:

    # semanage export -f ./<my-selinux-settings.mod>
  2. Copy the file with the settings to the new system:

    # scp ./<my-selinux-settings.mod> <new-system-hostname>:
  3. Log in on the new system:

    $ ssh root@<new-system-hostname>
  4. Import the settings on the new system:

    <new-system-hostname># semanage import -f ./<my-selinux-settings.mod>
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部