Knowledge Base:SELinux module not found during emerge
During any emerge operation, Portage bails out with the following error:
!!! SELinux module not found. Please verify that it was installed.
This article is applicable to Gentoo Linux installations using a selinux profile:
eselect profile show
Current /etc/make.profile symlink: hardened/linux/amd64/selinux
This indicates that the Portage SELinux module is missing or damaged. Recent Portage versions provide this module out-of-the-box, but the security contexts of the necessary files might be wrong on the system.
Relabel the files offered by the Portage package: