Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Failed to resolve typeattributeset statement #13

Description

@ChernyakIA

Hello!
Performed steps on my server and on step 3. semodule -i zabbix_agent_libvirt.pp got an error:

root@*:~/zabbix-kvm-res/selinux# semodule -i zabbix_agent_libvirt.pp
Failed to resolve typeattributeset statement at /var/lib/selinux/default/tmp/modules/400/zabbix_agent_libvirt/cil:1
semodule:  Failed!

Checked what's causing the problem:

root@*:~/zabbix-kvm-res/selinux# bunzip2 -c /var/lib/selinux/default/tmp/modules/400/zabbix_agent_libvirt/cil | head -1 | tail -1
(typeattributeset cil_gen_require virtd_t)

Description virtd_t: https://linux.die.net/man/8/virtd_selinux

Tried:

root@*:~/zabbix-kvm-res/selinux# semanage permissive -a virtd_t
libsemanage.semanage_read_policydb: Could not open kernel policy /var/lib/selinux/default/active/policy.kern for reading. (No such file or directory).
FileNotFoundError: [Errno 2] No such file or directory

How to solve the issue with no rebooting the server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions