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#75017: 31.0.50; Untrusted user lisp files Date: Tue, 24 Dec 2024 23:58:20 +0000 Message-ID: References: <87bjx43gp7.fsf@pub.pink> <86frmg6xzf.fsf@gnu.org> <87frmf9r3z.fsf@pub.pink> <86v7va4kj6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18126"; mail-complaints-to="usenet@ciao.gmane.io" Cc: john muhl , 75017@debbugs.gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 25 01:00:24 2024 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 1tQEp5-0004YR-Kr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Dec 2024 01:00:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQEom-0002kE-Na; Tue, 24 Dec 2024 19:00: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 1tQEol-0002jB-AO for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 19:00:03 -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 1tQEol-00019J-0r for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 19:00:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=TIaCRa/fbi3Gxp/Bnxk9cqZy7xvDzqWDzPqQGrSDIHU=; b=NruxwzkijqjrvwjBAnfSfRcljLtMg7Q668qlYbzVWIQ98jvK2gFSuI6qT9Caw9qLTwrM3ABbBwXf0ogpRbKpmvZ4Zwv50rtpjJIU7TR+IuIz2QD6/IiG1Ba+SRc3iWbFfcvfYEeqeExrd29nxYW+x9YxnDB07pOacZ9amHnVqpCFbmfGKgI/0m1qFlXnEP23kofXqFdCD5ulJa8hdRwHz0Pj8wcV1D7wiibpxxGxr5IFKDhrXhYVkhUo9KAfap8M3M7iRIH9PkNSFtQQwjq5b6cks/cNa5fsna8g7r9kBapDb3PsMO7OHJfkkKIxrfODQLK/Nf0U47vZduv5Gq8u2A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQEok-0007F6-Ly for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 19:00: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: Wed, 25 Dec 2024 00:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75017 X-GNU-PR-Package: emacs Original-Received: via spool by 75017-submit@debbugs.gnu.org id=B75017.173508476527758 (code B ref 75017); Wed, 25 Dec 2024 00:00:02 +0000 Original-Received: (at 75017) by debbugs.gnu.org; 24 Dec 2024 23:59:25 +0000 Original-Received: from localhost ([127.0.0.1]:35421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQEo8-0007De-Oc for submit@debbugs.gnu.org; Tue, 24 Dec 2024 18:59:25 -0500 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:61922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQEo5-0007DU-Qb for 75017@debbugs.gnu.org; Tue, 24 Dec 2024 18:59:23 -0500 Original-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5d3d0205bd5so7468197a12.3 for <75017@debbugs.gnu.org>; Tue, 24 Dec 2024 15:59:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735084701; x=1735689501; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=TIaCRa/fbi3Gxp/Bnxk9cqZy7xvDzqWDzPqQGrSDIHU=; b=ZixJDXWR3bWA2v6ICbU3S48f5rnMWpk/KLAWVC1MAP1n6aMxnQJpQ8f8S4TqmaZbg4 RrGD1XU3rg3mIn4vHyG4tSHLVcf9cnRXJx8nu9V0K1EN0Jpf3dXIGIujo9vE+4aqSpEH 7aKym1i0X2qOz/69XV86HKYEbJjmRhwW+AxbEoZDrC57YVbAFM0vhMI7xeer6KfSBwzp NzNoKLri+dJR+THH3ckbVdJE8Beb0WZv5hFrMAhgm4E6xjdxOmN0pPHlVbbS8OoaNi7M cDMB4joioTSYsfT/hzOSweCUTzVyEWGfsL3fxDvD1+lCsDDVj8iym/veBn10db4O9epl CQlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735084701; x=1735689501; h=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=TIaCRa/fbi3Gxp/Bnxk9cqZy7xvDzqWDzPqQGrSDIHU=; b=O6WhVO4xZgTFOyj0sFQ5PWHUERUUqRwvR98ecjabGYaLOkRWvCiUKPU4DI4ts+7juv p5MJZHQcL/Sq8C4DHveAX9pPDAMhztF7ZgHkv8cTpty99+xrR1NU+SMyDDXG5DCFRw+0 yy60H8FztOagOAWwfqL8CZWC1NeR05CvzlZkSeM2msMNgstJ1QN2Nkfvy3ZiB62aloli GRyx4XKpkHFf6FzlbcOZ+TdK6FlETpDPxmXuKxLkt4An/xwrFLWrJXcVpmh4mGza35tA QuyVDrTEMzeZep6O8l/FquhpMs0tEYJ8/ol3DgB69JoFHbjTLQbAt/7LlhjOl7Jg9YXG dssA== X-Forwarded-Encrypted: i=1; AJvYcCUoZ/fAxgPrjJW3i0atO6GOrDR16Jq0zfWIb9rr7uR4wd0HWY9QH35HLPi30MntQ2f/HA248w==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwCe5pkWmdV9ra1awEBvCMwCeGEUTbWHpHXRYlNYpR9MD8smdFH GtpBx7uDS8fJ0N+XcY7tdh8Ld0GOFbAHuS/NXdjT+XVre9nE0QA2jxvoh5tXnzsee+x9Efd6frI QjlTIAHt/w0Lkx0ZYg1mf4+V9osg= X-Gm-Gg: ASbGncuquo/Y1GWEHCJy4SdZUAluDMumasKcvcARw1q2j193BeJddjxIiledh4MpebQ 4CtzY8gzzwu/WXJfvHxgLmDd62rf7BBgARFnI6zw= X-Google-Smtp-Source: AGHT+IHA1ho4Kf4jtTOyrMKHWAszd+BM3BUdulG9MpC31ISmJrYw2fCPonxvXXB0uyfFiJ3tbZWmF3TeFDC24ekbDEg= X-Received: by 2002:a05:6402:354b:b0:5d4:4143:c082 with SMTP id 4fb4d7f45d1cf-5d81ddfbda8mr13445367a12.21.1735084700598; Tue, 24 Dec 2024 15:58:20 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 24 Dec 2024 23:58:20 +0000 In-Reply-To: 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:297709 Archived-At: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: >> Maybe we should trust the early-init-file as well, but then where does >> this end? The init files can load gobs of other files. And there's >> also custom-file (when it isn't nil), desktop-dirname and >> desktop-base-file-name, etc. etc. >> Stefan, WDYT about this? > > For Emacs-30, I see no need to make changes to what we have in this > regard for the simple reason that `elisp-flymake-byte-compile` usually > doesn't give great feedback in init files or in most of those other > funny loaded files like desktop's (both false positives and false > negatives). So there's no hurry in deciding whether to include > `early-init-file`, or `custom-file`, or `desktop-dirname`, or ... > > More useful might be to auto-trust the packages's ELisp files > found in `load-path` (because these are files for which that backend > should usually give good quality feedback). But that's a bigger change > and it's not completely clear which files we should trust there, so > I don't think we're ready to add that in `emacs-30`. I agree that what we have is fine for Emacs 30.