Bug 1338038

Summary: Specify chmod-socket for stats socket in uwsgi.ini
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: uwsgiAssignee: Jorge Gallegos <kad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: kad, tadej.j
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: uwsgi-2.0.14-1.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 05:01:10 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 Ville Skyttä 2016-05-20 21:02:17 UTC
uwsgi.ini enables the stats server using /run/uwsgi/stats.sock. It doesn't however specify anything related to the socket permissions which means it gets created with modes rwxr-xr-x, owner uwsgi:uwsgi. rw-rw---- would make more sense to me, so that unneeded executable bits would be dropped, world readability would be dropped, and users in group uwsgi could connect. That'd be accomplished with this patch:

diff --git a/emperor.ini b/emperor.ini
index e0ba2d1..6b974b9 100644
--- a/emperor.ini
+++ b/emperor.ini
@@ -6,2 +6,3 @@ emperor = /etc/uwsgi.d
 stats = /run/uwsgi/stats.sock
+chmod-socket = 660
 emperor-tyrant = true

Comment 1 Jan Kurik 2016-07-26 04:28:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 2 Fedora Update System 2016-10-06 20:58:52 UTC
uwsgi-2.0.14-1.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-2016-18518b6b30

Comment 3 Fedora Update System 2016-10-14 05:01:10 UTC
uwsgi-2.0.14-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.