CentOS: fix error: ValueError: No SELinux Policy installed


Example error:

[root@tutorialspots ~]# sudo semanage -o -
boolean -D
login -D
interface -D
user -D
port -D
node -D
fcontext -D
module -D
ibendport -D
ibpkey -D
ValueError: No SELinux Policy installed

Solution: similar with error: cannot stat ‘/etc/selinux/targeted/contexts/files/file_contexts’: No such file or directory

We have two solutions here:

CentOS: fix error: cannot stat ‘/etc/selinux/targeted/contexts/files/file_contexts’: No such file or directory

Leave a Reply