SELinux Context Restoration for LUKS-Encrypted Mounts in Rocky Linux 9
0 reputation · 19 Feb 2022, 00:54 UTC
0 reputation · 19 Feb 2022, 00:54 UTC
Rocky Linux 9.4 supports LUKS full-disk encryption via systemd-hibernate and cryptsetup, with XFS as the default filesystem and ext4 on /boot for bootloader compatibility. SELinux enforces mandatory access controls beyond traditional Unix permissions, but the interaction between encrypted volume mounting and SELinux context application remains poorly documented.
The core uncertainty lies in whether SELinux policies automatically restore appropriate security contexts to files within LUKS-encrypted directories after reboot, or if administrators must manually relabel filesystem contexts using restorecon or fixfiles commands. This becomes particularly critical for /home directories which inherit default umask 022, potentially creating world-readable files that bypass intended encryption protections.
Network filesystems like NFS bypass local encryption through kernel keyring limitations, but the question specifically concerns local encrypted volumes. Verification commands exist to check encryption state and boot partition exposure, but no standard procedure exists for auditing SELinux context restoration on encrypted mounts.
A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.