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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In