From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WBdUAOO3eWF15wAAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 22:34:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id k8OkN+K3eWGOYAAA1q6Kng (envelope-from ) for ; Wed, 27 Oct 2021 20:34:42 +0000 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 BDC241E2D7 for ; Wed, 27 Oct 2021 22:34:42 +0200 (CEST) Received: from localhost ([::1]:59764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfpdB-0005pU-Ut for larch@yhetil.org; Wed, 27 Oct 2021 16:34:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfknW-0002Wn-F0 for bug-guix@gnu.org; Wed, 27 Oct 2021 11:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfknW-00028M-73 for bug-guix@gnu.org; Wed, 27 Oct 2021 11:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfknW-0000qx-0k for bug-guix@gnu.org; Wed, 27 Oct 2021 11:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51442: Non-default umask when using guix system leads to wrong file permissions Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 27 Oct 2021 15:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51442 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51442@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16353482723218 (code B ref -1); Wed, 27 Oct 2021 15:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2021 15:24:32 +0000 Received: from localhost ([127.0.0.1]:50223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfkn2-0000pq-EW for submit@debbugs.gnu.org; Wed, 27 Oct 2021 11:24:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:47610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfkmy-0000pe-6k for submit@debbugs.gnu.org; Wed, 27 Oct 2021 11:24:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfkmx-0001tN-CO for bug-guix@gnu.org; Wed, 27 Oct 2021 11:24:27 -0400 Received: from jpoiret.xyz ([206.189.101.64]:34398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfkmv-00016b-Ly for bug-guix@gnu.org; Wed, 27 Oct 2021 11:24:26 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 7F2D5184F41 for ; Wed, 27 Oct 2021 15:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1635348261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RzgCq5F4pZ/Wl0zcsLyqF8erTdOVwHRs7+T3iZWFihY=; b=WIkCF3Vj1E8CgFIr2ht6FcTzA2VlIqyFWT/qvhTki+h8sNwDi/yiMZL+PcMT8EBPJRLffd 4DjLgSmydkrTErX3rbUNf7aObFqYazR4sM2XiTm6aa5z3IwJkk/ksU/WWluyNpocZoELQy 3U+1PxQHb49NTSaA8dEGgWjgemBPgjy0LO4bNwhOGAZREcrHDIeMZ70bzc9rLlMdmgvT18 4AfseC08WhAZCFDHMwfCbRewlLexnrucxFhhWCOn8qQZTx7nSoZnaZTDMweLBrsDq6DUMz pK/krckmfdA1QvaH72Ax6W19aMl960Ntt6CvkwUbtgnyln+2fRAkNIu9CMRnmA== Date: Wed, 27 Oct 2021 15:24:20 +0000 Message-ID: <87wnlya3tn.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 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, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, PDS_OTHER_BAD_TLD=0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 27 Oct 2021 16:31:02 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635366882; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=RzgCq5F4pZ/Wl0zcsLyqF8erTdOVwHRs7+T3iZWFihY=; b=X5wNIlTjFy7OpXBK0jeWXHZkPv+c1gmlVEs40/qd00c8xBjdgaJqviNdIagYBLC8ZdEX9S A0+D/iljl1npJDrqIgFXICU0XaJ9WX2Apn2FFGqBko/JLlBRxveiz3c5cumdiMMVeR3USd yEKgHVgI/CqbMcmoUsp+uQ/a2e3SrD89qk3DXaX/C2q8K2Mlt2FzsYp6lOS5Twm9LXWrli 51XRfWfOSzidythPREEVigqpWpDB140I43FVMzrT5F+g5/TNHxy1+WeyDDi3PoJB9PqhS2 bddqJ/TVrfYFu3rQjTfSpNL0a2puioxThN9huu7HnwbGhPqKIpcIxpQsiYG5XA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635366882; a=rsa-sha256; cv=none; b=fiUVvyzjsI9l7JPXrD9kKVhH7mFLeuQZTX9F3whn4nxjkxEcIpRoD6ODuHtTkxdVZJtWOv Zq4nw5bF3s1ODMK/uLHqQ1jzBsGXVJ2kyiNFfkh1vjrEPVONIAy/p+TNexkT8VC3NGNNr3 HhjY0NCZrVt89MlO6Oaune9rhlER4U7XvvzyXeucBBe4Uej0JnSZdpTIsrnvWB9NtA1E+O BgmzwQbfZhicNHy91zcFWvBPi2dON1m3DgV0GrR96n9mC5toEZD6LlKwuOWUCvuKyyft/d aqLjEAAJcZ+EnSYyphGhHa5m37yaYAolRAys8oA25tkVtBi1acciSeyPdVFqEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=WIkCF3Vj; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=WIkCF3Vj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: BDC241E2D7 X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6McQOI/Ac2Tb Hi, As reported on IRC by wonko (https://logs.guix.gnu.org/guix/2021-10-27.log#115445), when running =E2=80=98guix system=E2=80=99 under a different umask, some files are creat= ed with the wrong permissions. This can happen because =E2=80=98sudo=E2=80=99 does by = default keeps the umask it is running on (by ORing it with the default one, often 022). I'm not sure what would be the best way to go about this, I suggest checking if umask =3D=3D #o022, and if not, print a warning and set it to #o022, and only in =E2=80=98guix system=E2=80=99. What do you think? Best, Josselin Poiret