Description of problem: After installing ipsilon 1.0.0 packages, configuring it with ipsilon-server-install, and restarting Apache, access to https://$(hostname)/idp results in 500 ISE and ssl_error_log showing IOError: Configuration file not found. Version-Release number of selected component (if applicable): ipsilon-1.0.0-1.fc22.noarch How reproducible: Deterministic. Steps to Reproduce: 1. yum -y install /usr/sbin/ipsilon-server-install httpd mod_ssl ipsilon-authpam ipsilon-authgssapi ipsilon-saml2 2. ipsilon-server-install --pam yes 3. service httpd restart 4. Click http://<the-ipsilon-server>/idp Actual results: Internal Server Error ssl_error_log has ==> /var/log/httpd/ssl_error_log <== [Wed Aug 05 02:27:02.717871 2015] [wsgi:error] [pid 3676] [remote 10.11.12.13:136] mod_wsgi (pid=3676): Target WSGI script '/usr/libexec/ipsilon' cannot be loaded as Python module. [Wed Aug 05 02:27:02.717954 2015] [wsgi:error] [pid 3676] [remote 10.11.12.13:136] mod_wsgi (pid=3676): Exception occurred processing WSGI script '/usr/libexec/ipsilon'. [Wed Aug 05 02:27:02.718050 2015] [wsgi:error] [pid 3676] [remote 10.11.12.13:136] Traceback (most recent call last): [Wed Aug 05 02:27:02.718110 2015] [wsgi:error] [pid 3676] [remote 10.11.12.13:136] File "/usr/libexec/ipsilon", line 38, in <module> [Wed Aug 05 02:27:02.718335 2015] [wsgi:error] [pid 3676] [remote 10.11.12.13:136] raise IOError("Configuration file not found") [Wed Aug 05 02:27:02.718388 2015] [wsgi:error] [pid 3676] [remote 10.11.12.13:136] IOError: Configuration file not found Expected results: No error, nice page. Additional info:
Ahh, AVC denial: type=AVC msg=audit(1438756022.717:170): avc: denied { read } for pid=3684 comm="httpd" name="ipsilon.conf" dev="dm-0" ino=137046111 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_var_lib_t:s0 tclass=lnk_file permissive=0 # find / -inum 137046111 /var/lib/ipsilon/idp/ipsilon.conf # find / -inum 137046111 | xargs ls -lZ lrwxrwxrwx. 1 root root unconfined_u:object_r:httpd_var_lib_t:s0 29 Aug 5 02:26 /var/lib/ipsilon/idp/ipsilon.conf -> /etc/ipsilon/idp/ipsilon.conf # rpm -q selinux-policy-targeted selinux-policy-targeted-3.13.1-128.8.fc22.noarch
Switching to Permissive makes the login page show up.
What are the labels on: /etc/ipsilon /etc/ipsilon/idp /etc/ipsilon/idp/ipsilon.conf ?
(In reply to Simo Sorce from comment #4) > What are the labels on: > /etc/ipsilon > /etc/ipsilon/idp > /etc/ipsilon/idp/ipsilon.conf > ? All of them are system_u:object_r:etc_t:s0.
I think we need advice from SELinux people on what we should do here. CCing mgrepl
It looks as legitimately and we should extend SELinux rules to cover it. Also we could think about httpd_conf_t for /etc/ipsilon directory.
(In reply to Miroslav Grepl from comment #7) > Also we could think about httpd_conf_t for /etc/ipsilon directory. There is (RHEL) bug 1256748 filed for the fact that the Apache configuration directory of Ipsilon is not httpd_conf_t labelled.
Nathan, In bug 1256748 you mentioned Upstream SELinux policy for Ipsilon, could you attach link for this policy? Thank you.
(In reply to Lukas Vrabec from comment #9) > Nathan, > In bug 1256748 you mentioned Upstream SELinux policy for Ipsilon, could you > attach link for this policy? > > Thank you. Patrick was working with someone on this as I understand it. Setting needinfo for him to provide the details on where this is.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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.
Reopening.
openssh-7.2p2-11.fc24 selinux-policy-3.13.1-191.8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-99191c4aab
selinux-policy-3.13.1-225.10.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-2017-31d4ea5eb1
selinux-policy-3.13.1-225.10.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.