Bug 1427303

Summary: Add group write permission to socket directory
Product: [Fedora] Fedora EPEL Reporter: Igor Kremin' <igor>
Component: uwsgiAssignee: Carl George <carlwgeorge>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7CC: carlwgeorge, kad, lastmikoi+rh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: uwsgi-2.0.17.1-1.fc27 uwsgi-2.0.17.1-1.fc28 uwsgi-2.0.17.1-1.el6 uwsgi-2.0.17.1-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-20 16:57:51 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 Igor Kremin' 2017-02-27 20:46:53 UTC
It would be wery good 
to add write permission for group 'uwsgi' to /var/run/uwsgi directory

It is needed when the uwsgi running in emperor-tyrant mode,
It will create the socks files, of owner /etc/uwsgi.d/*.ini files.

this helps to do that on installed instance.
chmod 775 /var/run/uwsgi

Comment 1 Carl George 2017-03-23 14:35:59 UTC
Hey Igor, I've been looking over this.  I want to overhaul the current set up a bit to take advantage of systemd tmpfiles.  When I do this I can have set the group permissions of the directory to writeable for the uwsgi group.

https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

Apropos to this, this package owns /run/uwsgi on every branch, including EL6, which results in an unowned /run directory.  This needs to be changed to /var/run/uwsgi.  So the overall change will be own /var/run/uwsgi on EL6, and everywhere else create /run/uwsgi via tmpfiles.

Comment 2 Igor Kremin' 2017-11-18 10:06:51 UTC
I had create file, which solve this issue. I think it is better solution
#/usr/lib/systemd/system/uwsgi.service.d/override.conf
[Service]
ExecStartPre=/bin/chmod 775  /run/uwsgi

Comment 3 Fedora Update System 2018-07-09 04:13:21 UTC
uwsgi-2.0.17.1-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-d801e05f92

Comment 4 Fedora Update System 2018-07-09 04:13:43 UTC
uwsgi-2.0.17.1-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-d2e0971e9b

Comment 5 Fedora Update System 2018-07-09 04:16:12 UTC
uwsgi-2.0.17.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-04b3af1edf

Comment 6 Fedora Update System 2018-07-09 04:18:06 UTC
uwsgi-2.0.17.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-acfce682f4

Comment 7 Fedora Update System 2018-07-11 19:16:40 UTC
uwsgi-2.0.17.1-1.fc27 has been pushed to the Fedora 27 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-2018-04b3af1edf

Comment 8 Fedora Update System 2018-07-11 19:50:44 UTC
uwsgi-2.0.17.1-1.el7 has been pushed to the Fedora EPEL 7 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-EPEL-2018-d2e0971e9b

Comment 9 Fedora Update System 2018-07-11 19:59:35 UTC
uwsgi-2.0.17.1-1.el6 has been pushed to the Fedora EPEL 6 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-EPEL-2018-d801e05f92

Comment 10 Fedora Update System 2018-07-11 23:40:27 UTC
uwsgi-2.0.17.1-1.fc28 has been pushed to the Fedora 28 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-2018-acfce682f4

Comment 11 Fedora Update System 2018-07-20 16:57:51 UTC
uwsgi-2.0.17.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2018-07-20 17:41:41 UTC
uwsgi-2.0.17.1-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2018-09-11 13:47:24 UTC
uwsgi-2.0.17.1-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2018-09-11 14:44:15 UTC
uwsgi-2.0.17.1-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.