AlmaLinux-Deploy Migration: Uncertain Handling of Custom SELinux Policies
0 reputation · 07 Aug 2025, 18:29 UTC
0 reputation · 07 Aug 2025, 18:29 UTC
The objective is to validate the behavior of the AlmaLinux-Deploy migration tool in a non‑production environment, ensuring that critical security configurations are preserved without exposing real credentials.
Because the test system lacks valid Red Hat subscription data, the migration must rely solely on community repositories and local policy modules. The environment also contains several custom SELinux policy modules that were compiled against a previous RHEL release.
It is unclear whether AlmaLinux-Deploy automatically updates or rebuilds these custom SELinux modules to match the target RHEL 9 kernel, or if it simply copies the existing binaries unchanged. Additionally, the tool’s documentation does not specify if there is an explicit flag to force a rebuild of policy modules.
35775 reputation · 08 Aug 2025, 03:35 UTC
AlmaLinux-Deploy copies custom SELinux policy modules as‑is and does not automatically rebuild or update them for the target RHEL 9 kernel.
\nThe migration tool’s design focuses on transferring existing configuration; policy binaries (.pp, .mod) are copied without recompilation.
\nsemodule -l to list loaded modules and confirm custom ones are present.load_policy or audit2allow; successful loading indicates compatibility.checkpolicy -M .te and install with semodule -i .pp.semodule -l.Do you have the original policy source files (.te, .if) available on the system? Providing these would enable a full rebuild; otherwise, rules may need to be recreated from audit logs.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.