ValueError: No SELinux Policy installed and Failed to resolve roleattributeset statement

Solution Verified - Updated -

Issue

  • When run semanage port -a -t squid_port_t -p tcp 8180, resulted in
    ValueError: No SELinux Policy installed.

  • When run setsebool -P squid_connect_any 0, resulted in Failed to
    resolve roleattributeset statement at /etc/selinux/targeted/tmp/modules/400/jbcs-httpd24-httpd/cil:1
    .

  • When run semodule -i jbcs-httpd24-httpd.pp, resulted in Failed to
    resolve roleattributeset statement at /etc/selinux/targeted/tmp/modules/400/jbcs-httpd24-httpd/cil:1

Environment

  • Red Hat Enterprise Linux 7
  • selinux-policy

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