From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4EfmFCkPBWOpXAEAbAwnHQ (envelope-from ) for ; Tue, 23 Aug 2022 19:32:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WNbLFCkPBWP17wAAauVa8A (envelope-from ) for ; Tue, 23 Aug 2022 19:32:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 120E029079 for ; Tue, 23 Aug 2022 19:32:25 +0200 (CEST) Received: from localhost ([::1]:40968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQXlI-0004yp-9x for larch@yhetil.org; Tue, 23 Aug 2022 13:32:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQXkw-0004r3-OM for guix-patches@gnu.org; Tue, 23 Aug 2022 13:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQXkw-0004PK-Ed for guix-patches@gnu.org; Tue, 23 Aug 2022 13:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQXkw-0003JH-A3 for guix-patches@gnu.org; Tue, 23 Aug 2022 13:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57363] [PATCH 0/1] Set #o640 permissions for log file of shepherd service in container. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Aug 2022 17:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57363@debbugs.gnu.org Cc: Arun Isaac , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166127588512677 (code B ref -1); Tue, 23 Aug 2022 17:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Aug 2022 17:31:25 +0000 Received: from localhost ([127.0.0.1]:44989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQXkK-0003IP-VR for submit@debbugs.gnu.org; Tue, 23 Aug 2022 13:31:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:43984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQXkI-0003IH-Gn for submit@debbugs.gnu.org; Tue, 23 Aug 2022 13:31:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQXkH-0004UD-Ms for guix-patches@gnu.org; Tue, 23 Aug 2022 13:31:22 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:48058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQXkD-0004EQ-TJ; Tue, 23 Aug 2022 13:31:21 -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=i0+ErrlphU7Q3VcKHistCQddIrbpJn+RSIZ+wQ6nt+U=; b=P/BNkxBhH82sjBtuWD8gFDZefl S5HTEd8OJu1R8Zv5bd0TSWwKT7oGmQG1bhe65B51LwBuknX9iNpAnZmJ3Im6U/qmszSinBFBbTf76 NnW9wSanbL5u99SuDstmu0323DWGaCT2C1pm1dKMgDW20lxohoS9RbSEL6zZHv+BXo6t/NM5NSzYS OBws/Gvdkuv12jg4YXIfk4zwPGN2UN28vRYsugxFnGn148D/Ux4vhVEvMvVwdBNMt7D85aTXk0glZ aZkzjnP95vizTMvXbDgv1YEMRj2wg5sL4K7rEC8K9N5bDtd8DGHW25/u+yb/A5HV93pdKxcA4Vg3l 9pA0pCPg==; Received: from [192.168.2.1] (port=53704 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1oQXk0-0009F5-2k; Tue, 23 Aug 2022 23:01:04 +0530 From: Arun Isaac Date: Tue, 23 Aug 2022 23:01:02 +0530 Message-Id: <20220823173102.30242-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.37.1 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-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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661275945; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=i0+ErrlphU7Q3VcKHistCQddIrbpJn+RSIZ+wQ6nt+U=; b=aDRHRW1Wjma0pAVZvr2vPUV9tC7FtvYiAh35dkP4Ha9U4sUP7ekeVpN3VN1S2vNyENa8+s /3jDrRP+whAvlujJ0zVjAK/Xwv4mO226d+FL2ArB8aPydQIdzAEINFKjPUqbixhXMECGAP DQbN2ah+rv8nNwQCdHn6Z7yLsU8STL6YQufZjOUe3TPzoE0dnagdXbkdPP3ckXhNQCDS18 vED6xHRt8Q3DlAEFviho/E344AMu9zOQeu7+BOPnVQUZJ0r4046CtPVQOTp3qXAf1Wf0ne t9HTBTmT/dE/LOllY8X310l0auwSaGAm8rAwnyfK+Ya56cZ7UVm7ORzfoT0jAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661275945; a=rsa-sha256; cv=none; b=mTSTeh3qxN9o50ymRqaszJP6bOcHwTlLT+MARb4TeV2W4ZM9iyYPmkw+eevnl9L0HFVY1p AAM/19cLtZVK76or4UxzeogyEW//JeQcTr012jq+Qos5Q5sElDxdlSj8ta9KPDRHw8zXVZ XIIe5/6Gy1qvRwZUZL1XX10jiM8V0xwtvcnBOsnByMjYv4wIWimCohkO0Yqng2zdI/lCQ4 QEFjESZ2pMDblJcpFwT+iK/FckUvY6IWB2+gTp4/rMjzgWSxI7r8MVgtAtr5eiRsWuOVnK 6J2h5sTS2T0aSNCaDfr6Fzc9M1S/+K3arVoSyzAzCdiQPIEVcHwumUce/iDw7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b="P/BNkxBh"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b="P/BNkxBh"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 120E029079 X-Spam-Score: 7.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: 12Xrhtha6AVa When a shepherd service is run using make-forkexec-constructor, the log file has #o640 permissions. This is set in the shepherd source code. => https://git.savannah.gnu.org/cgit/shepherd.git/tree/modules/shepherd/service.scm?h=v0.9.1#n987 However, when a shepherd service is run using make-forkexec-constructor/container, the log file has #o644 permissions. This patch corrects that. CCing Ludo since they wrote the code adjacent to this patch. Thanks! Arun Isaac (1): shepherd: Set #o640 permissions for log file of service in container. gnu/build/shepherd.scm | 2 ++ 1 file changed, 2 insertions(+) -- 2.37.1