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