libsepol.policydb_read: policydb module version 19 does not match my version range 4-10

Solution Verified - Updated -

Issue

Inserting a custom module to the SELinux policy fails with the following errors:

  # semodule -i local_policy.pp
libsepol.policydb_read: policydb module version 19 does not match my version range 4-10 (No such file or directory).
libsepol.sepol_module_package_read: invalid module in module package (at section 0) (No such file or directory).
libsemanage.semanage_load_module: Error while reading from module file /etc/selinux/targeted/modules/tmp/modules/local_policy.pp. (No such file or directory).
semodule:  Failed

Environment

Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.