semanage fails to create port context and fails with "Value Error : Can not execute semanage transaction"
Issue
semanagefails to createport contextand fails withValue Error : Can not execute semanage transaction- While trying to allow apache
http_port_tto listen onport82, geting the below trace:
# semanage port -a -t http_port_t -p tcp 82
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.29, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.29: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2.
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.29, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.29: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2.
Value Error : Can not execute semanage transaction
Environment
- Red Hat Enterprise Linux 7.1
- selinux-policy-targeted-3.13.1-23.el7.noarch
- selinux-policy-3.13.1-23.el7.noarch
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
