Why does semanage commands fail with error : libsepol.policydb_read: policydb magic number 0x39685a42 does not match expected magic number 0xf97cff8c or 0xf97cff8d (No such file or directory)

Solution In Progress - Updated -

Issue

  • semanage commands fails with error : libsepol.policydb_read: policydb magic number 0x39685a42 does not match expected magic number 0xf97cff8c or 0xf97cff8d (No such file or directory).

  • semodule commands fails with error : libsemanage.semanage_load_module: Error while reading from module file /etc/selinux/targeted/modules/tmp/base.pp. (Is a directory).
    semodule: Failed!

Environment

  • Red Hat Enterprise Linux 7

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