From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#40405: System log files are world readable Date: Sun, 19 Apr 2020 16:28:24 +0200 Message-ID: <87a73735yv.fsf@gnu.org> References: <87v9mg1zbt.fsf@GlaDOS.home> <874ktxh99k.fsf@gnu.org> <87pnciximi.fsf@GlaDOS.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45814) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQAwR-0000bh-0P for bug-guix@gnu.org; Sun, 19 Apr 2020 10:29:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQAwQ-00015Q-8n for bug-guix@gnu.org; Sun, 19 Apr 2020 10:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQAwP-000158-Si for bug-guix@gnu.org; Sun, 19 Apr 2020 10:29:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQAwP-0001c0-Px for bug-guix@gnu.org; Sun, 19 Apr 2020 10:29:01 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87pnciximi.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Wed, 08 Apr 2020 14:32:53 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Diego Nicola Barbato Cc: 40405-done@debbugs.gnu.org Hi Diego, 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 pas= s it > to fork+exec-command. > * doc/shepherd.texi (Service De- and Constructors): Adjust accordingly. I went ahead and pushed these two patches. We=E2=80=99ll need to test current Shepherd master on Guix, but I feel we= =E2=80=99ve accumulated enough improvements for a 0.7.1 release. Thanks, Ludo=E2=80=99.