From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#67323: 30.0.50; [PATCH] Set a new desktop file to mode 0600 Date: Thu, 14 Dec 2023 17:17:36 -0800 Message-ID: References: <87il5v76bn.fsf@ledu-giraud.fr> <835y1vi92r.fsf@gnu.org> <87edgj6z2r.fsf@ledu-giraud.fr> <8334wzi7d3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31863"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67323@debbugs.gnu.org To: Eli Zaretskii , Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 15 02:18:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rDwqM-00082Z-8L for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Dec 2023 02:18:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDwq4-0003iL-DA; Thu, 14 Dec 2023 20:18:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDwq2-0003hu-N8 for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 20:18:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rDwq2-0002FZ-Ec for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 20:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDwq1-0004og-W2 for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 20:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2023 01:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 67323-submit@debbugs.gnu.org id=B67323.170260306418488 (code B ref 67323); Fri, 15 Dec 2023 01:18:01 +0000 Original-Received: (at 67323) by debbugs.gnu.org; 15 Dec 2023 01:17:44 +0000 Original-Received: from localhost ([127.0.0.1]:51314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDwpk-0004o8-7I for submit@debbugs.gnu.org; Thu, 14 Dec 2023 20:17:44 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:51399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDwpi-0004nu-9j for 67323@debbugs.gnu.org; Thu, 14 Dec 2023 20:17:42 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3363ebb277bso71952f8f.2 for <67323@debbugs.gnu.org>; Thu, 14 Dec 2023 17:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702603057; x=1703207857; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=ciehYepFbXBPHV77Ty7lK9KPxnEGEjC/TzsBFxHj7YM=; b=hSYJzF4BffGtkTlTmoP017syJ+5iAAKBxyLfkdjjv9G1eqH82ngZrzDVOyFjm+L59U Gwr3v5lCH/zjEl20MmvmdP31LI543xJGm7anL7Q96pH9vryeYxZv6Idr4wBI/GTPCeGQ +9aM6r4DDHg6dJtnarjEI5PARTahwFhn6W2X5hd6Hi+8++nvK9yy6Wonq5dDeVZbMQzQ 8NpKMJGO7WZbeXShKjxLRhLKh0m/G8UZT22K5GPwC4mYiEV9rw35TDvt48dq9xolQ1zl Lf+bpDMNoMIFrKpSw/9djvCPz/ee2FowPLw2bTLx3j25Cm/tuZY6qDpgzeUypC/VUlGc u1Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702603057; x=1703207857; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ciehYepFbXBPHV77Ty7lK9KPxnEGEjC/TzsBFxHj7YM=; b=DL8ww1GYVqNxUDrRMoJBO9JKWhuFAyZgAMQU0AcoOGcf1Op1OS1QWIHDEc6EVwBbBP Y5bhkT6ZS9eBFicyNhJyTF26FOYDmdDurJBPkL0yAogVhQRJX49BzlOVPfRQx1CCf0Qz 3sb641g+irMqjt1tC5xLLXV5OWX1p6/5FUOch1K8HB173orOXVgdR8eX/21re5ZU2ACJ 10rCAMM/UFyp85FqWcq4IYjWtMBheumxIoc9xqV72rDy1UCEvpKjdeeJzt4yRdQxk2gG JeDFtmPa7n59OUeYzvMkFOTWf6Wu5pJ5vBWoGuCJRwEIbATOvpYn4pVyBR9PWIuHNCmX aKBg== X-Gm-Message-State: AOJu0YwUJCY5q2NU5IBSvp9z8tMPPrp7q7wA8RIj62uUhpWuLTv9S+KE rrHOSAdQYodi4AIhd+Dtnf5JwmdT1qV+PJVYmPE= X-Google-Smtp-Source: AGHT+IFbjZNWiInm6zuiTUw717K0ox+nTmzH63lkBU1pGf3h8yYGOEkj/wEXJUU7gzfsZjWP/qkAbi5212oghpUcxnc= X-Received: by 2002:adf:fbd1:0:b0:333:2fd2:5204 with SMTP id d17-20020adffbd1000000b003332fd25204mr4704313wrs.125.1702603056696; Thu, 14 Dec 2023 17:17:36 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 14 Dec 2023 17:17:36 -0800 In-Reply-To: <8334wzi7d3.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276243 Archived-At: Eli Zaretskii writes: >> From: Manuel Giraud >> Cc: 67323@debbugs.gnu.org >> Date: Tue, 21 Nov 2023 14:00:28 +0100 >> >> I had this idea while browsing savehist.el. It have >> 'savehist-file-modes' set to #o600 by default. Since desktop.el could >> also contain histories or others "secrets", I thought that it may a good >> idea to have more strict default. >> >> > The users can make this file unreadable by others if they want. >> >> Yes and it is what I have done previously for my own desktop file. The >> idea here is to have saner default. And as I said, it also works the >> other way around ;-) >> >> > It's a backward-incompatible change in any case. >> >> You are saying that it might surprise users who rely on the "readable >> for all" nature of one desktop file by default? I'd have a hard time to >> figure out such a scenario=E2=80=A6 But anyway, if you think this patch= does >> not worth it, say it and I'll close this report. > > I'll wait a bit for others to chime in, if anyone has an opinion. I think the patch makes sense. Having defaults that protect users security and privacy better, even if only slightly, is not a bad thing, not unless there are cases where it hurts. And I can't think of any such cases here.