From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 1981D6DE01D0 for ; Sun, 4 Feb 2018 11:25:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.008 X-Spam-Level: X-Spam-Status: No, score=-0.008 tagged_above=-999 required=5 tests=[AWL=-0.008] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o3ovv3M92bV1 for ; Sun, 4 Feb 2018 11:25:32 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 489676DE0183 for ; Sun, 4 Feb 2018 11:25:32 -0800 (PST) Received: from fifthhorseman.net (ool-6c3a0662.static.optonline.net [108.58.6.98]) by che.mayfirst.org (Postfix) with ESMTPSA id 7DFE8F99A for ; Sun, 4 Feb 2018 14:25:31 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id BCCB920529; Sun, 4 Feb 2018 14:25:26 -0500 (EST) From: Daniel Kahn Gillmor To: Notmuch Mail Subject: umask/permissions on new files created via notmuch-insert(1) ? Date: Sun, 04 Feb 2018 14:25:23 -0500 Message-ID: <87k1vs1rrw.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2018 19:25:33 -0000 --=-=-= Content-Type: text/plain during some maintenance work today, bremner and i noticed that message delivery via "notmuch insert" creates files that are stricter than the umask. using notmuch 0.23.6, with umask 027, "notmuch insert" created files with mode 0600. i would have expected 0640. using strace, i don't see notmuch invoking any system calls to umask() or chmod() so i'm not sure how these permissions are getting set in the first place. is there a reason that "notmuch insert" should be stricter than the umask? does this ring any bells for people? --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEzicvlOwymaWlnoHjyu+ogyFnUzMFAlp3XiMACgkQyu+ogyFn UzOU3A//T+UW6BH3tlktylj+uJs/a3/jzIDFpeV8A323dRuUNVGLWJuf1cAqo2Xt EO2bir0H2rah5bZ1LZ9BkCuAzPczGlfOBYlZtET0BGror31JmuLjK8G4tByLyAbT nb8BGjF57rhqz8l4TWb8gr1NwO9JuGHODgcEpXlCCpqzcIZelkPReffp2jihTlu5 k9VB20LOY7SvkcAlsY3XCKOFiDzSP1Ro32q+Aa54KuPQIyf+zcXBFTjkyAPAoarv y0LOAVIOhBAG0NaNQS96/L6pKani3KjAs0bI49MO5+b8+hm7MI9cRntyJ/8FAUTE 4BH97TTWCpg3aWRsqwuf4zvAbf+hOdsKWCRNacrKDiNwV2Ne38f+17XFe5cltrTX nmVPGTC1rAbV4BL54zXaJLyJ5JYCEBzSOQ+4rzPSWEQsYE3JH+31JHR6PKLP3SqP EmiI4z0bNU69P7IlR5XmQByfK0ZODMvMCm8DtyDBxHCr04FeJWotxP/D/kt61+yk +v/LHJdU/ydADgkaJUq1VwUeq9wscj9D7OO43vfctoRI1dLWRJxdNVM/pUAgPY3A JeaXuSLnXmRexYQ9Kr755ukq0sCkf9MvID2U1E2EhUUgZr9J6ZGB0DfHuR3GjlRo L7mDJlbUkprBMuvmKPBZRuwnTMSMTfu3cpEO92U9HSC6yHR2Fj0= =foje -----END PGP SIGNATURE----- --=-=-=--