1 |
This all has to do with the headers update that has been going on for |
2 |
the last couple weeks. The livecd has to be updated too, and I |
3 |
overlooked this fact. I'll try to get a new livecd out ASAP. |
4 |
|
5 |
|
6 |
On Tue, 2004-09-14 at 20:04, Richard Simpson wrote: |
7 |
> Brian- |
8 |
> |
9 |
> Look in /usr/src/linux/security/selinux/include/security.h to see what |
10 |
> policy versions your kernel is compatible with. My 2.6.7-r8 kernel |
11 |
> lists 15 min and 17 max, so I was able to use POLICYCOMPAT = -c 17. |
12 |
> AFAIK the policy compiler is only backwards compatible 1 version |
13 |
> level. |
14 |
> |
15 |
> For some reason emerge chose to merge selinux-base-policy-20040906 on |
16 |
> my system too even though that package is flagged ~x86, and I found |
17 |
> out after the fact that it's not compatible with my kernel. I would |
18 |
> like to see hardened-dev-sources noted in the changelog what policy |
19 |
> versions it supports, rather than having to dig through the headers |
20 |
> after its emerged. |
21 |
> |
22 |
> Richard. |
23 |
> -----Original Message----- |
24 |
> From: Brian Fernald [mailto:bfernald@×××××.com] |
25 |
> Sent: Tuesday, September 14, 2004 4:47 PM |
26 |
> To: gentoo-hardened@l.g.o |
27 |
> Subject: [gentoo-hardened] building gentoo hardened - selinux |
28 |
> |
29 |
> |
30 |
> Hi, |
31 |
> |
32 |
> I have just walked through the Gentoo SELinux handbook to |
33 |
> build a new system. Whenever I come to the point of loading |
34 |
> the security policy, it attempts to build a Policy of version |
35 |
> 18 .. It reports the following : |
36 |
> |
37 |
> make load |
38 |
> * Creating policy.conf |
39 |
> * Policy version: 18 |
40 |
> * Kernel version: 16 |
41 |
> * WARNING: Policy version mismatch. Is your POLICYCOMPAT set |
42 |
> correctly? |
43 |
> * See |
44 |
> http://hardened.gentoo.org/selinux/selinux-policy.xml#doc_chap6 |
45 |
> * for more information. |
46 |
> * Compiling and installing policy.18 |
47 |
> /usr/bin/checkpolicy: loading policy configuration from |
48 |
> /etc/security/selinux/src/policy.conf |
49 |
> security: 3 users, 5 roles, 367 types, 1 bools |
50 |
> security: 51 classes, 24552 rules |
51 |
> /usr/bin/checkpolicy: policy configuration loaded |
52 |
> /usr/bin/checkpolicy: writing binary representation (version |
53 |
> 18) to /etc/security/selinux/policy.18 |
54 |
> * Building file_contexts |
55 |
> * Installing file_contexts |
56 |
> * Loading policy.18 |
57 |
> /usr/sbin/load_policy: security_load_policy failed |
58 |
> make: *** [tmp/load] Error 3 |
59 |
> |
60 |
> |
61 |
> ... i then changed POLICYCOMPAT to be 16 and tried again : |
62 |
> |
63 |
> make load |
64 |
> * Policy version: 16 |
65 |
> * Kernel version: 16 |
66 |
> * Compiling and installing policy.16 |
67 |
> /usr/bin/checkpolicy: loading policy configuration from |
68 |
> /etc/security/selinux/src/policy.conf |
69 |
> security: 3 users, 5 roles, 367 types, 1 bools |
70 |
> security: 51 classes, 24552 rules |
71 |
> /usr/bin/checkpolicy: policy configuration loaded |
72 |
> /usr/bin/checkpolicy: writing binary representation (version |
73 |
> 16) to /etc/security/selinux/policy.16 |
74 |
> * Loading policy.16 |
75 |
> /usr/sbin/load_policy: security_load_policy failed |
76 |
> make: *** [tmp/load] Error 3 |
77 |
> |
78 |
> |
79 |
> it still fails. |
80 |
> |
81 |
> The system is currently booted to the LiveCD (as per |
82 |
> instructions).. the kernel downloaded and build was |
83 |
> 2.6.7-hardened-r8 (emerge hardened-dev-sources) .. |
84 |
> |
85 |
> Could anyone shed some light on what I am doing incorrectly ? |
86 |
> |
87 |
> Thanks, |
88 |
> |
89 |
> Brian |
90 |
> |
91 |
-- |
92 |
Chris PeBenito |
93 |
<pebenito@g.o> |
94 |
Developer, |
95 |
Hardened Gentoo Linux |
96 |
Embedded Gentoo Linux |
97 |
|
98 |
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243 |
99 |
Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243 |