From unknown Fri Jun 20 07:24:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42918 <42918@debbugs.gnu.org> To: bug#42918 <42918@debbugs.gnu.org> Subject: Status: [PATCH 0/1] services: fcgiwrap: Create parent directory for unix socket. Reply-To: bug#42918 <42918@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:24:18 +0000 retitle 42918 [PATCH 0/1] services: fcgiwrap: Create parent directory for u= nix socket. reassign 42918 guix-patches submitter 42918 Arun Isaac severity 42918 normal tag 42918 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 14:17:24 2020 Received: (at submit) by debbugs.gnu.org; 18 Aug 2020 18:17:25 +0000 Received: from localhost ([127.0.0.1]:36942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86Am-0000H4-ML for submit@debbugs.gnu.org; Tue, 18 Aug 2020 14:17:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:49854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86Ak-0000FQ-Ht for submit@debbugs.gnu.org; Tue, 18 Aug 2020 14:17:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k86Aj-0000BL-Kk for guix-patches@gnu.org; Tue, 18 Aug 2020 14:17:22 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:35148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k86Ag-0004us-8L for guix-patches@gnu.org; Tue, 18 Aug 2020 14:17:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mQY3RhhYla4vF3RhskFe+HtxeGatxyONOlcsYvqlJ3s=; b=MylBfbDDdlEDkQx0DaSTdS80dg R4PFKgN3vFiOkRH+G1WBehhraNU1jWiPY7ulMLaVBPpC3gApgXqwtZiObV023se5tLyf7qGAkn/Aw d236IofNm8p1VpkdNij9d6BJfQLQ6/9MeqYv7MkS0zEdb0kkxmn/sVVEsj0eK3CjcKrFTIkvnFkla wvYpueaT3aj9SjzpbdQMsYOOyPgqpXROJEcVTpwvw9lIbf4IDcUKh5jCCCx6+1u0u+Ncl/9vrYYrk hXR8OVqoh+pmlgqviNgXdrEI4yPNEeILtPTQt2Xdi5rrB5fZiduD1vdFZK3gDn4jH1PL7EzS1CN1d uTTgAClg==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1k86AD-000BgB-FN; Tue, 18 Aug 2020 23:46:49 +0530 From: Arun Isaac To: guix-patches@gnu.org Subject: [PATCH 0/1] services: fcgiwrap: Create parent directory for unix socket. Date: Tue, 18 Aug 2020 23:47:06 +0530 Message-Id: <20200818181706.19536-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/18 14:17:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Currently, fcgiwrap listening on a unix socket is unworkable since the fcgiwrap user may not have the necessary permissions to create the socket file. Arun Isaac (1): services: fcgiwrap: Create parent directory for unix socket. gnu/services/web.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) -- 2.28.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 14:20:40 2020 Received: (at 42918) by debbugs.gnu.org; 18 Aug 2020 18:20:40 +0000 Received: from localhost ([127.0.0.1]:36951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86Dw-0000bz-Cj for submit@debbugs.gnu.org; Tue, 18 Aug 2020 14:20:40 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:44378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86Dt-0000bk-H9 for 42918@debbugs.gnu.org; Tue, 18 Aug 2020 14:20:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=k9Wlh6F9+GBug00IbT1fDpYkDbk8LYkq0wr16Saopno=; b=Gma/QZS85BOTl5+y9S6YbK/NFH rmkOsJPeqd3HiWqJyosV8hGKSkfrxsajk/SJ5Hbd61r0xlfy6jMiEjHNA2kZ4sLYi2vxekYIUKwkb jLi7XQfTo623Tk1XzsLBhKt9ofEDAUGMHf2ogGKR1XB+fjOJftJkznZ0wziM29ffjRf/Wz+4ggorv hCpjj2O7A7/0+ipdwl4sSxwCSEzSqElptLXyfBvigyfcNlvCAEYcRZya3DwO/Z6TQilXDsOPeqoYm hZxI1i2NV6kxSFc8sPVNyHxSUcB4Fi8YF6okJn9jIexPckCt19afA6Fjeh2h5K8vqKeFug6SGQpQL gxFKh75w==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1k86DW-000BgZ-IP; Tue, 18 Aug 2020 23:50:14 +0530 From: Arun Isaac To: 42918@debbugs.gnu.org Subject: [PATCH 1/1] services: fcgiwrap: Create parent directory for unix socket. Date: Tue, 18 Aug 2020 23:50:32 +0530 Message-Id: <20200818182032.19689-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42918 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/services/web.scm (fcgiwrap-activation): New function. (fcgiwrap-service-type): Extend activation-service-type with fcgiwrap-activation. --- gnu/services/web.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 3b9f9e40be..d11a1c0545 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2019, 2020 Florian Pelz ;;; Copyright © 2020 Ricardo Wurmus ;;; Copyright © 2020 Tobias Geerinckx-Rice +;;; Copyright © 2020 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -794,13 +795,29 @@ of index files." #:user #$user #:group #$group)) (stop #~(make-kill-destructor))))))) +(define fcgiwrap-activation + (match-lambda + (($ package socket user group) + #~(begin + ;; When listening on a unix socket, create a parent directory for the + ;; socket with the correct permissions. + (when (string-prefix? "unix:" #$socket) + (let ((run-directory + (dirname (substring #$socket (string-length "unix:"))))) + (mkdir-p run-directory) + (chown run-directory + (passwd:uid (getpw #$user)) + (group:gid (getgr #$group))))))))) + (define fcgiwrap-service-type (service-type (name 'fcgiwrap) (extensions (list (service-extension shepherd-root-service-type fcgiwrap-shepherd-service) (service-extension account-service-type - fcgiwrap-accounts))) + fcgiwrap-accounts) + (service-extension activation-service-type + fcgiwrap-activation))) (default-value (fcgiwrap-configuration)))) (define-record-type* php-fpm-configuration -- 2.28.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 24 05:25:42 2020 Received: (at 42918) by debbugs.gnu.org; 24 Aug 2020 09:25:42 +0000 Received: from localhost ([127.0.0.1]:56048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kA8jW-0005J0-M7 for submit@debbugs.gnu.org; Mon, 24 Aug 2020 05:25:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kA8jT-0005Ih-VM for 42918@debbugs.gnu.org; Mon, 24 Aug 2020 05:25:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41553) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA8jN-0001wC-C6; Mon, 24 Aug 2020 05:25:33 -0400 Received: from [2a01:e0a:19b:d9a0:51fc:698d:e660:b966] (port=55370 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kA8jL-00053n-7e; Mon, 24 Aug 2020 05:25:32 -0400 From: Mathieu Othacehe To: Arun Isaac Subject: Re: [bug#42918] [PATCH 1/1] services: fcgiwrap: Create parent directory for unix socket. References: <20200818181706.19536-1-arunisaac@systemreboot.net> <20200818182032.19689-1-arunisaac@systemreboot.net> Date: Mon, 24 Aug 2020 11:25:29 +0200 In-Reply-To: <20200818182032.19689-1-arunisaac@systemreboot.net> (Arun Isaac's message of "Tue, 18 Aug 2020 23:50:32 +0530") Message-ID: <87imd8e6pi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42918 Cc: 42918@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey Arun, > * gnu/services/web.scm (fcgiwrap-activation): New function. > (fcgiwrap-service-type): Extend activation-service-type with > fcgiwrap-activation. This looks fine, feel free to proceed! Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 13:58:13 2020 Received: (at 42918-done) by debbugs.gnu.org; 26 Aug 2020 17:58:13 +0000 Received: from localhost ([127.0.0.1]:40719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAzga-0007Nx-RR for submit@debbugs.gnu.org; Wed, 26 Aug 2020 13:58:13 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:53062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAzgX-0007Nl-5L for 42918-done@debbugs.gnu.org; Wed, 26 Aug 2020 13:58:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6+2JxnN3ZrF4OLBp7mSgSQc1VKpdbYPKpIU8GPi1hDs=; b=Zp5NZev5k48u0KNXDQHeNf/3u dV+LoetpAtLgUEfbf5M1OakxnO9P9EHUsVjp0rt2QfdcH0cl66Qmhcb3I9k45xK0cVzN1GtBOYL2E +tVRnOhl+bgPi0iCixual0RmIn4jr5EZootoYtx0xB52GqL46IeUSKPmsGmgwKc991Uv1EMM4Zrpf 4EOnNS1nwttOlgclqIpPZ3C02+hS3bpggZZ+TmNFjl/JMLqGoBRcNKhc34UsHdVkjFLN5EraZoYAx ciPeRcNKwftHrswU50tNDu8yzuQA9Cv6B76aOfHUxQ5XW3SP3wC8i5p0dsvcAkaKVakI1m4yiShBr hqpBeKmiw==; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kAzfw-00071e-Cz; Wed, 26 Aug 2020 23:27:32 +0530 From: Arun Isaac To: Mathieu Othacehe Subject: Re: [bug#42918] [PATCH 1/1] services: fcgiwrap: Create parent directory for unix socket. In-Reply-To: <87imd8e6pi.fsf@gnu.org> References: <20200818181706.19536-1-arunisaac@systemreboot.net> <20200818182032.19689-1-arunisaac@systemreboot.net> <87imd8e6pi.fsf@gnu.org> Date: Wed, 26 Aug 2020 23:27:57 +0530 Message-ID: <878se1z3ve.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42918-done Cc: 42918-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Thanks for the review, pushed to master! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl9GoqYACgkQLiXui2GA K7MLuAgAvbU7IQnOiJAS1QtlX2NusacSQw7/vJGLyygviaGgyl6YiJlUgm61WAMI gnEF51GysXpq8OdE3gc2EfrhGXLN/0rLX6dW5AJ5azqqf3mvGL2CXDKIno/5AN+z OKsVjitZi+uleFiR8ukLthKBmPUXmUlfXm6Bd4PUUT8hwIQ6gDUq0GSYvlhwHUbd 1/+ANncN4BNBwRmwRJMAebgzjQlxy1mWdv4+7QlbEeSpL6+j1BciXJuIBt3Lduom Cs/EL/8aYOhGp+7CJZ9nRX4YXZw5gLxd2vud/QmA6g2+ob6I0hRtsMc92mKrwR46 ERw+ru2gckKvCOVU5kR1Nkt1ly2D3w== =CQ9f -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 20 07:24:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Sep 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator