Gentoo Archives: gentoo-hardened

From: rogk <rogkaa@×××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] SELinux installation problem
Date: Mon, 06 Feb 2006 12:07:26
Message-Id: 845c8720602060405w1b483539x@mail.gmail.com
1 Hello,
2 I'm trying to install Gentoo SELinux. I have used "hardened-x86-2005.1.iso".
3 I do everything what has said in "Intalling Gentoo SELinux"-guide. In the
4 beginning everything goes well, but when I do "emerge hardened-sources",
5 it's end like this:
6
7 >>> Source unpacked.
8 >>> Test phase [not enabled]: sys-kernel/hardened-sources-2.6.14-r5
9
10 >>> Install hardened-sources-2.6.14-r5 into /var/tmp/portage/hardened-
11 sources-2.6.14-r5/image/ category sys-kernel
12 >>> Copying sources ...
13 man:
14 prepallstrip:
15 strip: i686-pc-linux-gnu-strip --strip-unneeded
16 strip: i686-pc-linux-gnu-strip --strip-unneeded
17 >>> Completed installing hardened-sources-2.6.14-r5 into
18 /var/tmp/portage/hardened-sources-2.6.14-r5/image/
19
20 >>> Merging sys-kernel/hardened-sources-2.6.14-r5 to /
21 >>> Setting SELinux security labels
22 make: Entering directory `/etc/security/selinux/src/policy'
23 * Building file_contexts
24 Error opening /etc/security/selinux/policy.19: No such file or directory
25 make: *** [/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts]
26 Error 1
27 make: Leaving directory `/etc/security/selinux/src/policy'
28 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 126
29 has invalid context system_u:object_r:xconsole_device_t
30 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 133
31 has invalid context system_u:object_r:printer_device_t
32 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 137
33 has invalid context system_u:object_r:bsdpty_device_t
34 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 147
35 has invalid context system_u:object_r:printer_device_t
36 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 148
37 has invalid context system_u:object_r:printer_device_t
38 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 149
39 has invalid context system_u:object_r:printer_device_t
40 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 150
41 has invalid context system_u:object_r:printer_device_t
42 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 210
43 has invalid context system_u:object_r:power_device_t
44 /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line 307
45 has invalid context system_u:object_r:selinux_config_t
46 Exiting after 10 errors.
47
48 !!! ERROR: sys-kernel/hardened-sources-2.6.14-r5 failed.
49 !!! Function dyn_preinst, Line 1231, Exitcode 1
50 !!! Failed to set SELinux security labels.
51 !!! If you need support, post the topmost build error, NOT this status
52 message.
53
54 !!! FAILED preinst: 1
55
56 I have used stage3 (stage3-x86-selinux-20050726.tar.bz2) and I have checked
57 the md5sum. I hope that somebody could help me with this.

Replies

Subject Author
Re: [gentoo-hardened] SELinux installation problem Mivz <mivz@×××××××××××××.net>