"Failed to resolve typeattributeset statement" error message when updating SELinux policy packages

Solution Verified - Updated -

Issue

  • When updating the SELinux base package selinux-policy-targeted or any external policy package (e.g. pcp-selinux), the following is reported while running post-installation scripts:

    Running scriptlet: selinux-policy-targeted-3.14.3-95.el8_6.4.noarch
    Failed to resolve typeattributeset statement at /var/lib/selinux/targeted/tmp/modules/400/pcpupstream/cil:42
    /usr/sbin/semodule:  Failed!
    

Environment

  • Red Hat Enterprise Linux 8
    • selinux
    • pcp

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