Bug 1655702
Summary: | SELinux is preventing nginx from 'write' accesses on the sock_file fcgiwrap-nginx.sock. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew Bauer <zonexpertconsulting> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 29 | CC: | bperkins, dwalsh, jorti, lvrabec, mgrepl, plautrba, zonexpertconsulting |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:a8df0e27b767ebd5c895ccac61403ef699a546729ebd6de1b0b1c996cc1f9acc;VARIANT_ID=workstation; | ||
Fixed In Version: | selinux-policy-3.14.2-49.fc29 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-02-18 02:04:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andrew Bauer
2018-12-03 18:02:05 UTC
Hi, Where is this socket locate on the system? "fcgiwrap-nginx.sock" THanks, Lukas. The fcgiwrap package uses instantiated unit files to set file names & permissions that follow the web server user account. Consequently, the filename of the socket file is not static. It has the format fcgiwrap-%i.sock where %i is nginx, httpd, or with whatever user account name the sys admin calls the service. Doing this allows the sys admin to run multiple instances of fcgiwrap, each with different socket files, if such a need arises. The latest fcgiwrap, which is just now coming out of testing, places the socket file(s) into the /var/run/fcgiwrap/ folder. That's a little more than what you asked, but I through it would help to understand the whole picture. Let me know if you have any more questions. commit 12a725d677bb646bb69d08899a3a47c04957e318 (HEAD -> rawhide) Author: Lukas Vrabec <lvrabec> Date: Mon Jan 21 14:25:36 2019 +0100 Label /var/run/fcgiwrap dir as httpd_var_run_t BZ(1655702) This should fix the issue for future releases. Directory /var/run/fcgiwrap will be labeled as httpd_var_run_t and socket in this dir will inherits the label. Allow rules for this action are already defined in policy: # sesearch -A -s httpd_t -t httpd_var_run_t -c sock_file allow domain pidfile:sock_file { append getattr open write }; allow httpd_t httpd_var_run_t:sock_file { append create getattr ioctl link lock open read rename setattr unlink write }; selinux-policy-3.14.2-49.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7c13db036c selinux-policy-3.14.2-49.fc29 has been pushed to the Fedora 29 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-2019-7c13db036c selinux-policy-3.14.2-49.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. |