Comment 5 for bug 1635030

Revision history for this message
Rachappa B Goni (grachapp) wrote :

Further to this issue we got two more errors related to selinux policy compilation

1.
+ make -f /usr/share/selinux/devel/Makefile tripleo-selinux-mariadb.pp
Compiling targeted tripleo-selinux-mariadb module
/usr/bin/checkmodule: Module name tripleo_selinux_mariadb is different than the output base filename tripleo-selinux-mariadb
/usr/bin/checkmodule: loading policy configuration from tmp/tripleo-selinux-mariadb.tmp
make: *** [tmp/tripleo-selinux-mariadb.mod] Error 1
[2016-11-03 04:14:06,473] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 2]

2.
+ make -f /usr/share/selinux/devel/Makefile tripleo-selinux-mariadb.pp
Compiling targeted tripleo-selinux-mariadb module
/usr/bin/checkmodule: Module name tripleo_selinux_mariadb is different than the output base filename tripleo-selinux-mariadb
/usr/bin/checkmodule: loading policy configuration from tmp/tripleo-selinux-mariadb.tmp
make: *** [tmp/tripleo-selinux-mariadb.mod] Error 1
[2016-11-03 04:14:06,473] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 2]

Corrections:

1.
--- tripleo-selinux-mariadb.te.org 2016-11-03 05:02:04.031000000 -0400
+++ /usr/share/tripleo-image-elements/selinux/custom-policies/tripleo-selinux-mariadb.te 2016-11-03 04:31:26.818000000 -0400
@@ -1,5 +1,5 @@

-module tripleo_selinux_mariadb 1.0;
+module tripleo-selinux-mariadb 1.0;

 require {
        type haproxy_t;

2.
--- tripleo-selinux-rabbitmq.te.org 2016-11-03 05:01:48.939000000 -0400
+++ /usr/share/tripleo-image-elements/selinux/custom-policies/tripleo-selinux-rabbitmq.te 2016-11-03 04:36:43.327000000 -0400
@@ -1,5 +1,5 @@

-module tripleo_selinux_rabbitmq 1.0;
+module tripleo-selinux-rabbitmq 1.0;

 require {
         type rabbitmq_var_lib_t;