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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content