1 |
I got the installation completed. I used this tutorial |
2 |
http://www.gentoo.org/proj/en/hardened/selinux/selinux-x86-handbook.xml. |
3 |
There was one thing I had to do what wasn't mentioned in that tutorial. |
4 |
|
5 |
After chrooting |
6 |
|
7 |
# chroot /mnt/gentoo /bin/bash |
8 |
# env-update |
9 |
# source /etc/profile |
10 |
|
11 |
I did "umount /selinx" and that solved my problem. |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
2006/2/6, Mivz <mivz@×××××××××××××.net>: |
18 |
> |
19 |
> rogk wrote: |
20 |
> |
21 |
> > Hello, |
22 |
> > I'm trying to install Gentoo SELinux. I have used |
23 |
> > "hardened-x86-2005.1.iso". I do everything what has said in "Intalling |
24 |
> > Gentoo SELinux"-guide. In the beginning everything goes well, but when |
25 |
> > I do "emerge hardened-sources", it's end like this: |
26 |
> > |
27 |
> > >>> Source unpacked. |
28 |
> > >>> Test phase [not enabled]: sys-kernel/hardened-sources-2.6.14-r5 |
29 |
> > |
30 |
> > >>> Install hardened-sources-2.6.14-r5 into |
31 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/image/ category sys-kernel |
32 |
> > >>> Copying sources ... |
33 |
> > man: |
34 |
> > prepallstrip: |
35 |
> > strip: i686-pc-linux-gnu-strip --strip-unneeded |
36 |
> > strip: i686-pc-linux-gnu-strip --strip-unneeded |
37 |
> > >>> Completed installing hardened-sources-2.6.14-r5 into |
38 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/image/ |
39 |
> > |
40 |
> > >>> Merging sys-kernel/hardened- sources-2.6.14-r5 to / |
41 |
> > >>> Setting SELinux security labels |
42 |
> > make: Entering directory `/etc/security/selinux/src/policy' |
43 |
> > * Building file_contexts |
44 |
> > Error opening /etc/security/selinux/policy.19: No such file or directory |
45 |
> |
46 |
> > make: *** |
47 |
> > [/var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts] Error 1 |
48 |
> > make: Leaving directory `/etc/security/selinux/src/policy' |
49 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line |
50 |
> > 126 has invalid context system_u:object_r:xconsole_device_t |
51 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line |
52 |
> > 133 has invalid context system_u:object_r:printer_device_t |
53 |
> > /var/tmp/portage/hardened- sources-2.6.14-r5/temp/file_contexts: line |
54 |
> > 137 has invalid context system_u:object_r:bsdpty_device_t |
55 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line |
56 |
> > 147 has invalid context system_u:object_r:printer_device_t |
57 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line |
58 |
> > 148 has invalid context system_u:object_r:printer_device_t |
59 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line |
60 |
> > 149 has invalid context system_u:object_r:printer_device_t |
61 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line |
62 |
> > 150 has invalid context system_u:object_r:printer_device_t |
63 |
> > /var/tmp/portage/hardened- sources-2.6.14-r5/temp/file_contexts: line |
64 |
> > 210 has invalid context system_u:object_r:power_device_t |
65 |
> > /var/tmp/portage/hardened-sources-2.6.14-r5/temp/file_contexts: line |
66 |
> > 307 has invalid context system_u:object_r:selinux_config_t |
67 |
> > Exiting after 10 errors. |
68 |
> > |
69 |
> > !!! ERROR: sys-kernel/hardened-sources-2.6.14-r5 failed. |
70 |
> > !!! Function dyn_preinst, Line 1231, Exitcode 1 |
71 |
> > !!! Failed to set SELinux security labels. |
72 |
> > !!! If you need support, post the topmost build error, NOT this status |
73 |
> > message. |
74 |
> > |
75 |
> > !!! FAILED preinst: 1 |
76 |
> > |
77 |
> > I have used stage3 (stage3-x86-selinux-20050726.tar.bz2) and I have |
78 |
> > checked the md5sum. I hope that somebody could help me with this. |
79 |
> > |
80 |
> There is something wrong with your policy. Dit you set POLICYCOMPAT = -c |
81 |
> # to the correct kernel policy version in your policy Makefile? |
82 |
> Did the policy build correct? |
83 |
> |
84 |
> |
85 |
> -- |
86 |
> gentoo-hardened@g.o mailing list |
87 |
> |
88 |
> |