Hi,
I have just walked through the Gentoo SELinux handbook to build a new
system. Whenever I come to the point of loading the security policy, it
attempts to build a Policy of version 18 .. It reports the following :
make load
* Creating policy.conf
* Policy version: 18
* Kernel version: 16
* WARNING: Policy version mismatch. Is your POLICYCOMPAT set correctly?
* See http://hardened.gentoo.org/selinux/selinux-policy.xml#doc_chap6
* for more information.
* Compiling and installing policy.18
/usr/bin/checkpolicy: loading policy configuration from
/etc/security/selinux/src/policy.conf
security: 3 users, 5 roles, 367 types, 1 bools
security: 51 classes, 24552 rules
/usr/bin/checkpolicy: policy configuration loaded
/usr/bin/checkpolicy: writing binary representation (version 18) to
/etc/security/selinux/policy.18
* Building file_contexts
* Installing file_contexts
* Loading policy.18
/usr/sbin/load_policy: security_load_policy failed
make: *** [tmp/load] Error 3
... i then changed POLICYCOMPAT to be 16 and tried again :
make load
* Policy version: 16
* Kernel version: 16
* Compiling and installing policy.16
/usr/bin/checkpolicy: loading policy configuration from
/etc/security/selinux/src/policy.conf
security: 3 users, 5 roles, 367 types, 1 bools
security: 51 classes, 24552 rules
/usr/bin/checkpolicy: policy configuration loaded
/usr/bin/checkpolicy: writing binary representation (version 16) to
/etc/security/selinux/policy.16
* Loading policy.16
/usr/sbin/load_policy: security_load_policy failed
make: *** [tmp/load] Error 3
it still fails.
The system is currently booted to the LiveCD (as per instructions).. the
kernel downloaded and build was 2.6.7-hardened-r8 (emerge
hardened-dev-sources) ..
Could anyone shed some light on what I am doing incorrectly ?
Thanks,
Brian
I have just walked through the Gentoo SELinux handbook to build a new
system. Whenever I come to the point of loading the security policy, it
attempts to build a Policy of version 18 .. It reports the following :
make load
* Creating policy.conf
* Policy version: 18
* Kernel version: 16
* WARNING: Policy version mismatch. Is your POLICYCOMPAT set correctly?
* See http://hardened.gentoo.org/selinux/selinux-policy.xml#doc_chap6
* for more information.
* Compiling and installing policy.18
/usr/bin/checkpolicy: loading policy configuration from
/etc/security/selinux/src/policy.conf
security: 3 users, 5 roles, 367 types, 1 bools
security: 51 classes, 24552 rules
/usr/bin/checkpolicy: policy configuration loaded
/usr/bin/checkpolicy: writing binary representation (version 18) to
/etc/security/selinux/policy.18
* Building file_contexts
* Installing file_contexts
* Loading policy.18
/usr/sbin/load_policy: security_load_policy failed
make: *** [tmp/load] Error 3
... i then changed POLICYCOMPAT to be 16 and tried again :
make load
* Policy version: 16
* Kernel version: 16
* Compiling and installing policy.16
/usr/bin/checkpolicy: loading policy configuration from
/etc/security/selinux/src/policy.conf
security: 3 users, 5 roles, 367 types, 1 bools
security: 51 classes, 24552 rules
/usr/bin/checkpolicy: policy configuration loaded
/usr/bin/checkpolicy: writing binary representation (version 16) to
/etc/security/selinux/policy.16
* Loading policy.16
/usr/sbin/load_policy: security_load_policy failed
make: *** [tmp/load] Error 3
it still fails.
The system is currently booted to the LiveCD (as per instructions).. the
kernel downloaded and build was 2.6.7-hardened-r8 (emerge
hardened-dev-sources) ..
Could anyone shed some light on what I am doing incorrectly ?
Thanks,
Brian