I'm trying to create a selinux .te file from a .pp file but the tools on fc22 don't work. Is this a bug or should I be doing something different?
Environment: fc22
[root@fc20-64 ~]# rpm -q --whatprovides /bin/sedispol
checkpolicy-2.3-4.fc22.x86_64
[root@fc20-64 ~]# rpm -q kernel
kernel-4.2.6-201.fc22.x86_64
kernel-4.2.7-200.fc22.x86_64
kernel-4.2.8-200.fc22.x86_64
...
[root@fc20-64 ~]# grep logrotate /var/log/audit/audit.log | audit2allow -M mypol
[root@fc20-64 ~]# sedispol mypol.pp
Reading policy...
libsepol.policydb_read: policydb magic number 0xf97cff8f does not match expected magic number 0xf97cff8c or 0xf97cff8d
sedispol: error(s) encountered while parsing configuration
[root@fc20-64 ~]# checkmodule -b mypol.pp
checkmodule: loading policy configuration from mypol.pp
libsepol.policydb_read: policydb magic number 0xf97cff8f does not match expected magic number 0xf97cff8c or 0xf97cff8d
checkmodule: error(s) encountered while parsing configuration