Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154011 - sec-policy/selinux-base-policy fail to install
Summary: sec-policy/selinux-base-policy fail to install
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
: 159022 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-04 03:34 UTC by GNUtoo
Modified: 2006-12-24 13:29 UTC (History)
1 user (show)

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 GNUtoo 2006-11-04 03:34:02 UTC
i folowed the selinux guide but it break at this point:
# emerge -av sec-policy/selinux-base-policy

These are the packages that would be merged, in order:

Calculating dependencies... done!
INCOMPLETE MERGE: /var/db/pkg/sec-policy/-MERGING-selinux-base-policy-20061015
[ebuild  N    ] sec-policy/selinux-base-policy-20061015  0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) sec-policy/selinux-base-policy-20061015 to /
 * refpolicy-20061015.tar.bz2 MD5 ;-) ...                                 [ ok ]
 * refpolicy-20061015.tar.bz2 RMD160 ;-) ...                              [ ok ]
 * refpolicy-20061015.tar.bz2 SHA1 ;-) ...                                [ ok ]
 * refpolicy-20061015.tar.bz2 SHA256 ;-) ...                              [ ok ]
 * refpolicy-20061015.tar.bz2 size ;-) ...                                [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking refpolicy-20061015.tar.bz2 ;-) ...                            [ ok ]
!!! SELinux module not found. Please verify that it was installed.
>>> Unpacking source...
>>> Unpacking refpolicy-20061015.tar.bz2 to /var/tmp/portage/selinux-base-policy                                            -20061015/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/selinux-base-policy-20061015/work/ ...
Creating policy.xml
Creating strict base module base.conf
Compiling strict base module
/usr/bin/checkmodule:  loading policy configuration from /var/tmp/portage/selinux-base-policy-20061015/work//strict/base.conf
/usr/bin/checkmodule:  policy configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 6) to /var/tmp/portage/selinux-base-policy-20061015/work//strict/tmp/base.mod
Creating strict base module file contexts.
Creating netfilter network labeling rules
Creating strict base module package
Creating targeted base module base.conf
Compiling targeted base module
/usr/bin/checkmodule:  loading policy configuration from /var/tmp/portage/selinux-base-policy-20061015/work//targeted/base.conf
/usr/bin/checkmodule:  policy configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 6) to /var/tmp/portage/selinux-base-policy-20061015/work//targeted/tmp/base.mod
Creating targeted base module file contexts.
Creating netfilter network labeling rules
Creating targeted base module package
>>> Source compiled.
>>> Test phase [not enabled]: sec-policy/selinux-base-policy-20061015

>>> Install selinux-base-policy-20061015 into /var/tmp/portage/selinux-base-policy-20061015/image/ category sec-policy
Installing strict base.pp policy package.
Installing strict policy headers.
Installing targeted base.pp policy package.
Installing targeted policy headers.
>>> Completed installing selinux-base-policy-20061015 into /var/tmp/portage/selinux-base-policy-20061015/image/

man:
>>> Merging sec-policy/selinux-base-policy-20061015 to /
>>> Setting SELinux security labels
/etc/selinux/targeted/contexts/files/file_contexts: No such file or directory

!!! ERROR: sec-policy/selinux-base-policy-20061015 failed.
Call stack:
  misc-functions.sh, line 417:   Called preinst_selinux_labels
  misc-functions.sh, line 342:   Called die

!!! Failed to set SELinux security labels.
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! post preinst failed; exiting.
!!! FAILED preinst: 1
Comment 1 GNUtoo 2006-11-04 03:34:45 UTC
# emerge --info
Portage 2.1.1-r1 (selinux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r1_sempron_2500 i686)
=================================================================
System uname: 2.6.18-gentoo-r1_sempron_2500 i686 AMD Sempron(tm) 2500+
Gentoo Base System version 1.12.6
Last Sync: Fri, 03 Nov 2006 21:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks loadpolicy metadata-transfer sandbox selinux sesandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip a52 aac arts asf avahi berkdb crypt dedicated dts dxr3 elibc_glibc fat ffmpeg flac gtk hfs input_devices_keyboard input_devices_mouse ipv6 jfs jpeg2k kernel_linux matroska mmx musepack musicbrainz ncurses nls nptl nptlonly ntfs openal pam python readline reiser4 reiserfs rtsp samba selinux silverxp speex sse ssl svg tcpd theora threads tiff timidity udev unicode userland_GNU vcd video_cards__* video_cards_radeon wma wxwindows xfs zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Chris PeBenito (RETIRED) gentoo-dev 2006-11-04 07:09:22 UTC
You did not follow the SELinux guide, otherwise you would be using the 2005.1 profile.
Comment 3 GNUtoo 2006-11-04 08:45:20 UTC
(In reply to comment #2)
> You did not follow the SELinux guide, otherwise you would be using the 2005.1
> profile.
> 

but can i use the 2006.1 with selinux
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-12-24 13:29:12 UTC
*** Bug 159022 has been marked as a duplicate of this bug. ***