Summary: | sec-policy/selinux-makewhatis-2.20240916-r1 emerge fails due to unpopulated /usr/share/selinux/mcs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | herespam1 |
Component: | SELinux | Assignee: | SE Linux Bugs <selinux> |
Status: | UNCONFIRMED --- | ||
Severity: | major | CC: | gentoo, rp, vyedmic |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | logs and environment info |
(In reply to herespam1 from comment #0) > Created attachment 922958 [details] > logs and environment info > > I am installing a new gentoo hardened system (the profile is [33] > default/linux/amd64/23.0/no-multilib/hardened/selinux (stable)) and am > unable to complete the installation due to grub depending on > sec-policy/selinux-makewhatis and this in turn failing to build. Full > details are in the attached file. > > I am seeing the following error: > > Makefile:8: /usr/share/selinux/mcs/include/Makefile: No such file or > directory > > This appears to be due to /usr/share/selinux/mcs not existing. > > The issue has also been reproduced by another user on the #gentoo-hardened > irc channel. Hello, Not a fix, but this workaround worked for me: reinstall selinux-base . This fixed the same problem I was having. I have the same problem with sec-policy/selinux-kerberos-2.20240916-r1 Re-emerging selinux-base does not change anything. Same issue with selinux-logrotate-2.20240916-r1 (In reply to Christian Schmidt from comment #3) > Same issue with selinux-logrotate-2.20240916-r1 Except here emerge -1 sec-policy/selinux-base-2.20240916-r1 worked to create the needed Makefile. Check if you have POLICY_TYPES set in /etc/portage/make.conf and if it is, remove it, or ensure it contains mcs. |
Created attachment 922958 [details] logs and environment info I am installing a new gentoo hardened system (the profile is [33] default/linux/amd64/23.0/no-multilib/hardened/selinux (stable)) and am unable to complete the installation due to grub depending on sec-policy/selinux-makewhatis and this in turn failing to build. Full details are in the attached file. I am seeing the following error: Makefile:8: /usr/share/selinux/mcs/include/Makefile: No such file or directory This appears to be due to /usr/share/selinux/mcs not existing. The issue has also been reproduced by another user on the #gentoo-hardened irc channel.