hacklab root # emerge -Uuv --deep world Calculating world dependencies ...done! >>> emerge (1 of 51) sys-apps/selinux-small-2003011510-r3 to / >>> md5 ;-) selinux-small-2003011510.tgz >>> md5 ;-) selinux-small_2003011510-7.diff.gz selinux >>> Unpacking source... >>> Unpacking selinux-small-2003011510.tgz to /var/tmp/portage/selinux-small-2003011510-r3/work >>> Unpacking selinux-small_2003011510-7.diff.gz to /var/tmp/portage/selinux-small-2003011510-r3/work >>> Source unpacked. /usr/sbin/ebuild.sh: line 43: cd: /var/tmp/portage/selinux-small-2003011510-r3/work/policy: No such file or directory * Applying selinux-small_2003011510-7.diff... [ ok ] * Applying selinux-small-2003011510-bison.diff... [ ok ] * Compiling checkpolicy make -C checkpolicy LSMDIR=../../../lsm-2.4 make[1]: Entering directory `/var/tmp/portage/selinux-small-2003011510-r3/work/selinux/module/checkpolicy' make[1]: *** No rule to make target `ebitmap.o', needed by `checkpolicy'. Stop. make[1]: Leaving directory `/var/tmp/portage/selinux-small-2003011510-r3/work/selinux/module/checkpolicy' make: *** [all] Error 2 !!! ERROR: sys-apps/selinux-small-2003011510-r3 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! Checkpolicy compilation failed hacklab root # grep ^USE /etc/make.conf USE="acpi alsa bonobo cdr dga directfb doc dvd esd ethereal evo fbcon gb gd ggi gphoto2 gtkhtml guile imap innodb libgda maildir mbox mozilla mysql pda perl plotutils samba scanner selinux slp snmp sse tcltk tetex tiff usb xml prelude"
Please make sure your /usr/src/linux symlink points to the selinux-sources or hardened-sources kernel. Selinux-small will fail if the symlink is wrong. ebitmap.c exists inside the kernel sources. I'll be fixing the the selinux-small ebuild to check this.
Ok, this check is in >=selinux-small-2003011510-r4, which is already marked stable. It'll display a message if the kernel seems to be incorrect.