Bug 1338038 - Specify chmod-socket for stats socket in uwsgi.ini
Summary: Specify chmod-socket for stats socket in uwsgi.ini
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: uwsgi
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jorge Gallegos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-20 21:02 UTC by Ville Skyttä
Modified: 2016-10-14 05:01 UTC (History)
2 users (show)

Fixed In Version: uwsgi-2.0.14-1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 05:01:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.