From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 22 16:04:34 2020 Received: (at 40405-done) by debbugs.gnu.org; 22 Apr 2020 20:04:34 +0000 Received: from localhost ([127.0.0.1]:53386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRLbl-0006wa-NW for submit@debbugs.gnu.org; Wed, 22 Apr 2020 16:04:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRLbj-0006wH-6k for 40405-done@debbugs.gnu.org; Wed, 22 Apr 2020 16:04:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35812) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRLbd-0008Na-Vp; Wed, 22 Apr 2020 16:04:26 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53002 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jRLbd-0005Lm-Fb; Wed, 22 Apr 2020 16:04:25 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 40405-done@debbugs.gnu.org Subject: Re: bug#40405: System log files are world readable References: <87v9mg1zbt.fsf@GlaDOS.home> <874ktxh99k.fsf@gnu.org> <87pnciximi.fsf@GlaDOS.home> <87a73735yv.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?utf-8?Q?Flor=C3=A9al?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 22 Apr 2020 22:04:23 +0200 In-Reply-To: <87a73735yv.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 19 Apr 2020 16:28:24 +0200") Message-ID: <878sinthh4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40405-done Cc: dnbarbato@posteo.de 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.7 (-) Hi, Ludovic Court=C3=A8s skribis: > Diego Nicola Barbato skribis: > >>>From 43c9ded791ce5b480504ce3528ee34578168f90e Mon Sep 17 00:00:00 2001 >> From: Diego Nicola Barbato >> Date: Tue, 7 Apr 2020 13:58:28 +0200 >> Subject: [PATCH 1/2] service: Create log files as non-world-readable. >> >> * modules/shepherd/service.scm (exec-command): Create log-file with file >> permissions #o640. > > [...] > >>>From e491436967a912e6e7372f582b3bf5c9784b8209 Mon Sep 17 00:00:00 2001 >> From: Diego Nicola Barbato >> Date: Tue, 7 Apr 2020 13:38:47 +0200 >> Subject: [PATCH 2/2] service: Add #:file-creation-mask to >> 'make-forkexec-constructor'. >> >> * modules/shepherd/service.scm (exec-command): Add #:file-creation-mask >> parameter and honor it. >> (fork+exec-command): Add #:file-creation-mask parameter and pass it to >> exec-command. >> (make-forkexec-constructor): Add #:file-creation-mask parameter and pa= ss it >> to fork+exec-command. >> * doc/shepherd.texi (Service De- and Constructors): Adjust accordingly. > > I went ahead and pushed these two patches. These patches are in Shepherd 0.8.0, which was pushed in Guix master commit e3358a831e7d5d9e8dc614340e49ea5aeb11a7ff, so we=E2=80=99re done! Ludo=E2=80=99.