Bug 1267913
Summary: | SELinux prevents service httpd restart when mod_ssl is installed | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alexander Todorov <atodorov> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 25 | CC: | deadletterfile, dominick.grift, dwalsh, jkaluza, jorton, lvrabec, mgrepl, pahan, plautrba |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-12 11:12:39 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alexander Todorov
2015-10-01 11:42:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase Is this still reproducible? This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. I reported this issue in the past. Upgrade of Fedora 23 to fc25 via dnf plugin. Still reproducible. New for me is failure of adjustment to local selinux policy. Snippets from journalctl -xe: failed to retrieve rpm info for /var/log/ssl_error_log SELinux is preventing httpd from open access on the file /var/log/ssl_error_log Plugin catchall (100. confidence) suggests Running: ausearch -c 'httpd' --raw | audit2allow -M my-httpd succeeds. # semodule -i my-httpd.pp (Fails) libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file. libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file. libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file. semodule: Failed on my-httpd.pp! Disabling selinux allows httpd to start. Could run: # restorecon -Rv / Please, let me know if it fixed your issue. Thanks. Had done a restorecon on /var earlier. restorecon -Rv / and an attempted start of httpd failed. Behavior is unchanged from Comment 4. semanage fcontext -l /var/log/ssl_access_log all files system_u:object_r:var_log_t:s0 /var/log/ssl_error_log all files system_u:object_r:var_log_t:s0 # ls -alZ /var/log/ssl* -rw-------. 1 root root system_u:object_r:var_log_t:s0 140 Dec 7 06:36 /var/log/ssl_access_log -rw-r--r--. 1 root root system_u:object_r:var_log_t:s0 1380011 Dec 5 07:19 /var/log/ssl_error_log Regarding Comment #4, off topic, but perhaps useful. Appears /.autorelabel and/or adding autorelabel to the GRUB kernel line fails for me. I had two directories (BackupPC, mypol) in /var/lib/selinux/targeted/active/modules/400/ which contained zero byte files: cil hll lang_ext. I deleted these two directories. SElinux relabel works and I am able to create a local policy for this bug as directed by sealert. This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |