Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 908001

Summary: sec-policy/selinux-pulseaudio-2.20221101-r4 mcs policy fails to build
Product: Gentoo Linux Reporter: Vytautas Krasauskas <bugs.gentoo.org>
Component: SELinuxAssignee: SE Linux Bugs <selinux>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Vytautas Krasauskas 2023-06-07 11:38:06 UTC
Created attachment 863496 [details]
emerge --info

I am building Gentoo in a chroot on an Ubuntu system, but I don't think it matters in this case, as it's just the MCS policy that seems to be missing:

=============================================
Makefile:8: /usr/share/selinux/mcs/include/Makefile: No such file or directory
make: *** No rule to make target '/usr/share/selinux/mcs/include/Makefile'.  Stop.
=============================================
Comment 1 Vytautas Krasauskas 2023-06-07 11:38:32 UTC
Created attachment 863497 [details]
build.log
Comment 2 Kenton Groombridge gentoo-dev 2023-10-06 16:13:52 UTC
This can happen if you are switching policy types without rebuilding the selinux-base package first. When this package is installed, it reads POLICY_TYPES from make.conf and installs the needed policy dependencies in /usr/share/selinux/<policy>. If 'mcs' is not specified in POLICY_TYPES, then the required files for the mcs policy won't be installed.

Generally speaking when you are doing whole policy updates or rebuilds, it's a good idea to just merge the entire @selinux-rebuild set which pulls in everything correctly.