GNU bug report logs - #75017
31.0.50; Untrusted user lisp files

Previous Next

Package: emacs;

Reported by: john muhl <jm <at> pub.pink>

Date: Sat, 21 Dec 2024 20:50:02 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: john muhl <jm <at> pub.pink>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 75017 <at> debbugs.gnu.org
Subject: bug#75017: 31.0.50; Untrusted user lisp files
Date: Mon, 23 Dec 2024 15:05:17 +0200
> From: john muhl <jm <at> pub.pink>
> Cc: 75017 <at> debbugs.gnu.org
> Date: Sun, 22 Dec 2024 18:32:00 -0600
> 
> Specifically, I was surprised to find that user-init-file is
> assumed safe but not early-init-file. After reading the
> trusted-content part of the manual where it says “…which means no
> file is trusted.” I assumed that included user-init-file. When I
> saw that wasn’t the case I then assumed early-init-file would get
> the same treatment. Maybe a little extra clarity there would be
> sufficient for now.

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?




This bug report was last modified 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.