semanage reports "ValueError: No SELinux Policy installed" in Red Hat Enterprise Linux

Solution Verified - Updated -

Issue

  • semanage reports "ValueError: No SELinux Policy installed" in Red Hat Enterprise Linux
[root@rhel7 ~]# semanage
Traceback (most recent call last):
  File /usr/sbin/semanage, line 32, in <module>
    import seobject
  File /usr/lib/python2.7/site-packages/seobject/__init__.py, line 36, in <module>
    import sepolicy
  File /usr/lib64/python2.7/site-packages/sepolicy/__init__.py, line 907, in <module>
    raise e
ValueError: No SELinux Policy installed

Environment

  • Red Hat Enterprise Linux 7
  • selinux-policy
  • policycoreutils-python

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.