Description of problem: semanage doesn't work on rawhide Version-Release number of selected component (if applicable): libselinux-2.5-0.1.rc1.fc24.x86_64 selinux-policy-3.13.1-171.fc24.noarch selinux-policy-targeted-3.13.1-171.fc24.noarch libselinux-python-2.5-0.1.rc1.fc24.x86_64 libselinux-utils-2.5-0.1.rc1.fc24.x86_64 libselinux-python3-2.5-0.1.rc1.fc24.x86_64 rpm-plugin-selinux-4.13.0-0.rc1.24.fc24.x86_64 libsemanage-2.5-0.1.rc1.fc24.x86_64 libsemanage-python3-2.5-0.1.rc1.fc24.x86_64 libsemanage-python-2.5-0.1.rc1.fc24.x86_64 How reproducible: Always Steps to Reproduce: 1. install rawhide 2. run: semanage port --list Actual results: # semanage port --list libsemanage.semanage_read_policydb: Could not open kernel policy /var/lib/selinux/targeted/active/policy.kern for reading. (No such file or directory). FileNotFoundError: [Errno 2] No such file or directory Expected results: A list of port mappings Additional info: I can manually fix the issue by symlinking the current policy: ln -s /etc/selinux/targeted/policy/policy.29 /var/lib/selinux/targeted/active/policy.kern
We need to fix it in selinux-policy package. In the mean time, please use: # semodule -B The symlink you created is not corrent
Thanks Petr! I can confirm that 'semodule -B' indeed fixes the issue. # rm /var/lib/selinux/targeted/active/policy.kern # semodule -B # semanage port --list SELinux Port Type Proto Port Number afs3_callback_port_t tcp 7001 afs3_callback_port_t udp 7001 ...
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.
selinux-policy-3.13.1-208.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-662487f8f1
selinux-policy-3.13.1-208.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-662487f8f1
selinux-policy-3.13.1-208.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.