1 |
Brian- |
2 |
|
3 |
Upon further investigation it looks like the policy exports the headers to |
4 |
the kernel, so maybe you will have to unmerge and then merge the older |
5 |
policy. 0702 should work. |
6 |
|
7 |
Richard. |
8 |
|
9 |
> -----Original Message----- |
10 |
> From: Brian Fernald [mailto:bscottfernald@×××××.com] |
11 |
> Sent: Tuesday, September 14, 2004 6:22 PM |
12 |
> To: Richard Simpson |
13 |
> Cc: gentoo-hardened@l.g.o |
14 |
> Subject: Re: [gentoo-hardened] building gentoo hardened - selinux |
15 |
> |
16 |
> |
17 |
> Hi Richard, |
18 |
> |
19 |
> my security.h lists 15 - 17.. however, no matter which I build |
20 |
> (POLICYCOMPAT), it still fails to load. I am quite perplexed.. have |
21 |
> re-completed multiple rebuilds of gentoo just to make sure I am not |
22 |
> missing something... yet, everytime, can't load any policy... |
23 |
> |
24 |
> Brian |
25 |
> |
26 |
> |
27 |
> |
28 |
> ----- Original Message ----- |
29 |
> From: Richard Simpson <richard.simpson@×××××.com> |
30 |
> Date: Tue, 14 Sep 2004 18:04:15 -0600 |
31 |
> Subject: RE: [gentoo-hardened] building gentoo hardened - selinux |
32 |
> To: Brian Fernald <bfernald@×××××.com>, gentoo-hardened@l.g.o |
33 |
> |
34 |
> |
35 |
> Brian- |
36 |
> |
37 |
> Look in /usr/src/linux/security/selinux/include/security.h to see what |
38 |
> policy versions your kernel is compatible with. My 2.6.7-r8 kernel |
39 |
> lists 15 min and 17 max, so I was able to use POLICYCOMPAT = -c 17. |
40 |
> AFAIK the policy compiler is only backwards compatible 1 version |
41 |
> level. |
42 |
> |
43 |
> For some reason emerge chose to merge selinux-base-policy-20040906 on |
44 |
> my system too even though that package is flagged ~x86, and I found |
45 |
> out after the fact that it's not compatible with my kernel. I would |
46 |
> like to see hardened-dev-sources noted in the changelog what policy |
47 |
> versions it supports, rather than having to dig through the headers |
48 |
> after its emerged. |
49 |
> |
50 |
> Richard. |
51 |
> |
52 |
> |
53 |
> |
54 |
> -----Original Message----- |
55 |
> From: Brian Fernald [mailto:bfernald@×××××.com] |
56 |
> Sent: Tuesday, September 14, 2004 4:47 PM |
57 |
> To: gentoo-hardened@l.g.o |
58 |
> Subject: [gentoo-hardened] building gentoo hardened - selinux |
59 |
> |
60 |
> |
61 |
> Hi, |
62 |
> |
63 |
> I have just walked through the Gentoo SELinux handbook to build a new |
64 |
> system. Whenever I come to the point of loading the security |
65 |
> policy, it attempts to build a Policy of version 18 .. It reports |
66 |
> the following : |
67 |
> |
68 |
> make load |
69 |
> * Creating policy.conf |
70 |
> * Policy version: 18 |
71 |
> * Kernel version: 16 |
72 |
> * WARNING: Policy version mismatch. Is your POLICYCOMPAT set correctly? |
73 |
> * See http://hardened.gentoo.org/selinux/selinux-policy.xml#doc_chap6 |
74 |
> * for more information. |
75 |
> * Compiling and installing policy.18 |
76 |
> /usr/bin/checkpolicy: loading policy configuration from |
77 |
> /etc/security/selinux/src/policy.conf |
78 |
> security: 3 users, 5 roles, 367 types, 1 bools |
79 |
> security: 51 classes, 24552 rules |
80 |
> /usr/bin/checkpolicy: policy configuration loaded |
81 |
> /usr/bin/checkpolicy: writing binary representation (version 18) to |
82 |
> /etc/security/selinux/policy.18 |
83 |
> * Building file_contexts |
84 |
> * Installing file_contexts |
85 |
> * Loading policy.18 |
86 |
> /usr/sbin/load_policy: security_load_policy failed |
87 |
> make: *** [tmp/load] Error 3 |
88 |
> |
89 |
> |
90 |
> ... i then changed POLICYCOMPAT to be 16 and tried again : |
91 |
> |
92 |
> make load |
93 |
> * Policy version: 16 |
94 |
> * Kernel version: 16 |
95 |
> * Compiling and installing policy.16 |
96 |
> /usr/bin/checkpolicy: loading policy configuration from |
97 |
> /etc/security/selinux/src/policy.conf |
98 |
> security: 3 users, 5 roles, 367 types, 1 bools |
99 |
> security: 51 classes, 24552 rules |
100 |
> /usr/bin/checkpolicy: policy configuration loaded |
101 |
> /usr/bin/checkpolicy: writing binary representation (version 16) to |
102 |
> /etc/security/selinux/policy.16 |
103 |
> * Loading policy.16 |
104 |
> /usr/sbin/load_policy: security_load_policy failed |
105 |
> make: *** [tmp/load] Error 3 |
106 |
> |
107 |
> |
108 |
> it still fails. |
109 |
> |
110 |
> The system is currently booted to the LiveCD (as per instructions).. |
111 |
> the kernel downloaded and build was 2.6.7-hardened-r8 (emerge |
112 |
> hardened-dev-sources) .. |
113 |
> |
114 |
> Could anyone shed some light on what I am doing incorrectly ? |
115 |
> |
116 |
> Thanks, |
117 |
> |
118 |
> Brian |
119 |
> |
120 |
> |
121 |
|
122 |
|
123 |
-- |
124 |
gentoo-hardened@g.o mailing list |