Skip to contentSkip to conversation

policy version jumped to 18

DISCUSSION Luke Kenneth Casson Leighton 3 participants 5 messages Jul 31, 2004 – Aug 2, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

arg, wot a pain.

i am doing an install on another machine, just for fun (and prior to doing an upgrade on another).

this is with my lovely 2.6.6-selinux1 kernel.

policy version being reported by the kernel i am using is 17.

checkpolicy is being a pain and reporting that it does version 18.

therefore, a make install does this:

creates a policy.conf file, and creates a .17 file (somewhere) because that's what the kernel supports.

checkpolicy is then used to find what to check, which says "i do version 18".

consequently, i don't get anywhere.

hack-time...

Signature · 14 lines
-- 
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 13 lines · Luke Kenneth Casson Leighton

arg, wot a pain.

i am doing an install on another machine, just for fun (and prior to doing an upgrade on another).

this is with my lovely 2.6.6-selinux1 kernel.

policy version being reported by the kernel i am using is 17.

checkpolicy is being a pain and reporting that it does version 18.

therefore, a make install does this:

Quoted 8 lines

creates a policy.conf file, and creates a .17 file (somewhere) because that's what the kernel supports.

checkpolicy is then used to find what to check, which says "i do version 18".

consequently, i don't get anywhere.

hack-time...

nope, didn't work. boot-up of the 2.6.6 kernel went "eek, i only support versions 15-17".

oh well.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw

Hi Luke,
when you use policy utilities and policy files for version 18 you probably should upgrade your kernel to support verison 18, too. I had the same problem; i hacked the makefile so the tools explicitely generate a version 17 policy, but the better way to get the kernel patch from the selinux homepage and just build a kernel with version 18.

Greetings,
Erich

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 3 lines · Erich Schubert

Hi Luke,
when you use policy utilities and policy files for version 18 you probably should upgrade your kernel to support verison 18, too.

ha :)

Quoted 3 lines

I had the same problem; i hacked the makefile so the tools explicitely generate a version 17 policy, but the better way to get the kernel patch from the selinux homepage and just build a kernel with version 18.

well, i grabbed the source code from sf.net instead, along with apt-get source kernel-image-2.6.7-k7, copied /usr/src/k..../config/k7 and enabled the selinux stuff.

so far so bad... :)

l.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#4 lore raw
In reply to Luke Kenneth Casson Leighton
Quoted 4 lines · Luke Kenneth Casson Leighton

policy version being reported by the kernel i am using is 17.

checkpolicy is being a pain and reporting that it does version 18.

Quoted 8 lines

therefore, a make install does this:

creates a policy.conf file, and creates a .17 file (somewhere) because that's what the kernel supports.

checkpolicy is then used to find what to check, which says "i do version 18".

consequently, i don't get anywhere.

checkpolicy -c n will generate policy version n (-c for compatibility).

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.