Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53189 - second call to make relabel fails while installing selinux gentoo
Summary: second call to make relabel fails while installing selinux gentoo
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Hardened Gentoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-06 20:49 UTC by Stephen Torri
Modified: 2004-06-07 10:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Torri 2004-06-06 20:49:36 UTC
The relabelling of files a second time as called for by the installation guide fails. I did it the first time while in the chroot environment and that was successful. After following the guide to umount and reboot the system I tried it directly from the installed environment (Live CD removed from CDROM and boot normally).

Reproducible: Always
Steps to Reproduce:
1. boot into system through grub (not LiveCD)
2. cd /etc/security/selinux/src/policy
3. make relabel

Actual Results:  
 * Relabeling filesystem types: ext2 ext3 xfs
/usr/sbin/setfiles:  invalid context system_u:object_r:default_t on line number
39
/usr/sbin/setfiles:  invalid context system_u:object_r:root_t on line number 44
/usr/sbin/setfiles:  invalid context system_u:object_r:home_root_t on line numbe
r 53
/usr/sbin/setfiles:  invalid context system_u:object_r:user_home_dir_t on line n
umber 54
/usr/sbin/setfiles:  invalid context system_u:object_r:user_home_t on line numbe
r 55
/usr/sbin/setfiles:  invalid context system_u:object_r:mnt_t on line number 59
/usr/sbin/setfiles:  invalid context system_u:object_r:var_t on line number 64
/usr/sbin/setfiles:  invalid context system_u:object_r:catman_t on line number 6
5
/usr/sbin/setfiles:  invalid context system_u:object_r:catman_t on line number 6
6
/usr/sbin/setfiles:  invalid context system_u:object_r:var_yp_t on line number 6
7
Exiting after 10 errors.
/usr/sbin/setfiles:  read 552 specifications
make: *** [relabel] Error 1

Expected Results:  
Completed successfully

!!! SELinux not loaded: SELinux is not enabled.
Gentoo Base System version 1.4.10
Portage 2.0.50-r7 (x86, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-hardened-r3)
=================================================================
System uname: 2.6.5-hardened-r3 i686 Pentium II (Deschutes)
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox sfperms strict userpriv
"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
x/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb crypt doc fam hardened hardenedphp imap mmx mysql ncurse
s nls pam perl python readline sasl selinux ssl tcpd x86 zlib"
Comment 1 Bryan Stine (RETIRED) gentoo-dev 2004-06-06 20:52:45 UTC
Seems like your policy isn't loaded. Please do make load in the same directory.
Comment 2 Stephen Torri 2004-06-07 08:13:16 UTC
Doing make load in the same directory says that there is nothing to be done to it.  
Afterwards I tried to do make relabel and got the same result. Is there a "make clean" command for removing the compiled files so that you can recompile the policy?
Comment 3 Stephen Torri 2004-06-07 10:11:42 UTC
The installation guide needs to be updated. If you do the second 'make relabel' it should be preceded by 'make clean' and 'make load' before doing the second 'make relabel'. The error messages received up cleared up when those steps were taken.