semanage fails to create port context and fails with "Value Error : Can not execute semanage transaction"
Issue
semanage
fails to createport context
and fails withValue Error : Can not execute semanage transaction
- While trying to allow apache
http_port_t
to listen onport
82, 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, tools, and much more.