Hello,
I'm trying to install Gentoo SELinux. I have used
"hardened-x86-2005.1.iso". I do everything what has said in "Intalling
Gentoo SELinux"-guide. In the beginning everything goes well, but when
I do "emerge hardened-sources", it's end like this:
>>> Source unpacked.
>>> Test phase [not enabled]: sys-kernel/hardened-sources-2.6.14-r5
>>> Install hardened-sources-2.6.14-r5 into /var/tmp/portage/hardened-sources-2.6.14-r5/image/ category sys-kernel
>>> Copying sources ...
man:
prepallstrip:
strip: i686-pc-linux-gnu-strip --strip-unneeded
strip: i686-pc-linux-gnu-strip --strip-unneeded
>>> Completed installing hardened-sources-2.6.14-r5 into /var/tmp/portage/hardened-sources-2.6.14-r5/image/
>>> Merging sys-kernel/hardened-sources-2.6.14-r5 to /
>>> Setting SELinux security labels
make: Entering directory `/etc/security/selinux/src/policy'
* Building file_contexts
Error opening /etc/security/selinux/policy.19: No such file or directory
make: *** [/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts] Error 1
make: Leaving directory `/etc/security/selinux/src/policy'
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 126 has invalid context system_u:object_r:xconsole_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 133 has invalid context system_u:object_r:printer_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 137 has invalid context system_u:object_r:bsdpty_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 147 has invalid context system_u:object_r:printer_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 148 has invalid context system_u:object_r:printer_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 149 has invalid context system_u:object_r:printer_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 150 has invalid context system_u:object_r:printer_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 210 has invalid context system_u:object_r:power_device_t
/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts:
line 307 has invalid context system_u:object_r:selinux_config_t
Exiting after 10 errors.
!!! ERROR: sys-kernel/hardened-sources-2.6.14-r5 failed.
!!! Function dyn_preinst, Line 1231, Exitcode 1
!!! Failed to set SELinux security labels.
!!! If you need support, post the topmost build error, NOT this status message.
!!! FAILED preinst: 1
I have used stage3 (stage3-x86-selinux-20050726.tar.bz2) and I have
checked the md5sum. I hope that somebody could help me with this.
- [gentoo-hardened] SELinux installation problem rogk
