Description of problem: When you encountered SELinux alert, you will be given following instruction: You can generate a local policy module to allow this access. Allow this access for now by executing: # grep <command1> /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp While it is correct if you only have to allow one module, however, after using the same instruction on command2, the change for command1 is replaced thus no longer active. Suggestion: Change the "mypol" with "my_<command>". the <command> is the one showing after grep. Version-Release number of selected component (if applicable): setroubleshoot-3.3.5-2.fc23 How reproducible: Always Steps to Reproduce: 1. Run "sealert" 2. Find any SELinux problem 3. Click "Troubleshoot" Actual results: Following instruction is shown in solution text area: You can generate a local policy module to allow this access. Allow this access for now by executing: # grep <command> /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Expected results: Following instruction is shown in solution text area: You can generate a local policy module to allow this access. Allow this access for now by executing: # grep <command> /var/log/audit/audit.log | audit2allow -M my_<command> # semodule -i my_<command>.pp Additional info:
Sounds reasonable for me. Thanks for the idea! The patch is available for now at https://github.com/bachradsusi/setroubleshoot/commit/192f55ed28e1258618da2d4b6ee33015f5c6ce99 You can try it with setroubleshoot-plugins-3.3.4-0.fc25.2 build from my COPR repo https://copr.fedorainfracloud.org/coprs/plautrba/setroubleshoot/build/179680/ I will update translation files and create a pull request.
Note: alert reports are cached in /var/lib/setroubleshoot/setroubleshoot_database.xml. You need to remove the file and restart setroubleshootd.
setroubleshoot-plugins-3.3.4-1.fc24 setroubleshoot-3.3.6-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-812271b66f
setroubleshoot-plugins-3.3.4-1.fc23 setroubleshoot-3.3.6-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e5a3abe570
setroubleshoot-3.3.6-1.fc23, setroubleshoot-plugins-3.3.4-1.fc23 has been pushed to the Fedora 23 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-e5a3abe570
setroubleshoot-3.3.6-1.fc24, setroubleshoot-plugins-3.3.4-1.fc24 has been pushed to the Fedora 24 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-812271b66f
setroubleshoot-3.3.6-1.fc24, setroubleshoot-plugins-3.3.4-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
setroubleshoot-3.3.6-1.fc23, setroubleshoot-plugins-3.3.4-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.