php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77062 In FPM config, user accepts numerical uid, but listen.owner doesn't
Submitted: 2018-10-25 20:06 UTC Modified: -
From: Andreas dot Ley at kit dot edu Assigned:
Status: Open Package: *Configuration Issues
PHP Version: 7.3.0RC4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Andreas dot Ley at kit dot edu
New email:
PHP Version: OS:

 

 [2018-10-25 20:06 UTC] Andreas dot Ley at kit dot edu
Description:
------------
When configuring the FPM, a config option like

user = 12345

is valid, but

listen.owner = 12345

provokes a 'cannot get uid for user' error message

The code to be fixed is in sapi/fpm/fpm/fpm_unix.c where fpm_unix_conf_wp() has a check for a numerical value but fpm_unix_resolve_socket_premissions() [which looks like a typo to me] hasn't.

I added a simple patch to port this functionality to fpm_unix_resolve_socket_premissions(); if this will be accepted, a similar change might be favorable for the acl options, too.

Background: This helps to avoid getpwnam() in situations with a not-so-stable LDAP server...


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Dec 19 04:01:26 2018 UTC