From unknown Sat Jun 21 10:29:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#31709 <31709@debbugs.gnu.org> To: bug#31709 <31709@debbugs.gnu.org> Subject: Status: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? Reply-To: bug#31709 <31709@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:29:49 +0000 retitle 31709 27.0.50; Wishlist: Perhaps Emacs should load a file when gett= ing a particular signal? reassign 31709 emacs submitter 31709 Lars Ingebrigtsen severity 31709 wishlist tag 31709 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 04 07:30:07 2018 Received: (at submit) by debbugs.gnu.org; 4 Jun 2018 11:30:07 +0000 Received: from localhost ([127.0.0.1]:60942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPngd-0003Mr-6f for submit@debbugs.gnu.org; Mon, 04 Jun 2018 07:30:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPngb-0003HK-Rn for submit@debbugs.gnu.org; Mon, 04 Jun 2018 07:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPngV-0005BY-Lc for submit@debbugs.gnu.org; Mon, 04 Jun 2018 07:30:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fPngV-0005BS-Hw for submit@debbugs.gnu.org; Mon, 04 Jun 2018 07:29:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPngU-0006rj-8z for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 07:29:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPngQ-00059e-VN for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 07:29:58 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:35129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPngQ-00057J-O4 for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 07:29:54 -0400 Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fPngG-0003yb-QI for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 13:29:46 +0200 From: Lars Ingebrigtsen To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? Date: Mon, 04 Jun 2018 13:29:44 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Once again I find myself in the situation that I've started an Emacs at home without an Emacs server socket, and I know there's something in a buffer there that I want to get a hold of. But I'm at work, and there's no way to make Emacs start a server remotely. It would be really nice if I could just ssh to the machine where the Emacs is running, do "kill -USR1 " and then ... Emacs could do something. Like load "~/.emacs.d/load-file-USR1" or something. Or just start emacs-server. There are security implications, of course... But does this seem like something useful? Writing a package that does this is easy, of course, but if you know that this is something you need, then you'd already have started the Emacs server anyway. So it would have to be something that's available in Emacs by default, because you only need it if you didn't know that you were going to need it. :-) In GNU Emacs 27.0.50 (build 22, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2018-05-31 built on stories Repository revision: c0a0351249c1e6a9307224d8337ff8916f4cf138 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 9 (stretch) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 04 08:29:04 2018 Received: (at 31709) by debbugs.gnu.org; 4 Jun 2018 12:29:04 +0000 Received: from localhost ([127.0.0.1]:60973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPobc-0006uM-GH for submit@debbugs.gnu.org; Mon, 04 Jun 2018 08:29:04 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:44909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPobW-0006u8-GQ for 31709@debbugs.gnu.org; Mon, 04 Jun 2018 08:28:58 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id C4B1CE7510; Mon, 4 Jun 2018 14:28:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ZsRsBPY9wwd; Mon, 4 Jun 2018 14:28:41 +0200 (CEST) Received: from localhost (188.47.31.174.ipv4.supernova.orange.pl [188.47.31.174]) by mail.mojserwer.eu (Postfix) with ESMTPSA id C3DADE6DAD; Mon, 4 Jun 2018 14:28:40 +0200 (CEST) References: User-agent: mu4e 1.1.0; emacs 27.0.50 From: Marcin Borkowski To: Lars Ingebrigtsen Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? In-reply-to: Date: Mon, 04 Jun 2018 14:27:34 +0200 Message-ID: <877ene91op.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-06-04, at 13:29, Lars Ingebrigtsen wrote: > Once again I find myself in the situation that I've started an Emacs at > home without an Emacs server socket, and I know there's something in a > buffer there that I want to get a hold of. But I'm at work, and there's > no way to make Emacs start a server remotely. > > It would be really nice if I could just ssh to the machine where the > Emacs is running, do "kill -USR1 " and then ... Emacs could do > something. Like load "~/.emacs.d/load-file-USR1" or something. Or just > start emacs-server. > > There are security implications, of course... But does this seem like > something useful? > > Writing a package that does this is easy, of course, but if you know > that this is something you need, then you'd already have started the > Emacs server anyway. So it would have to be something that's available > in Emacs by default, because you only need it if you didn't know that > you were going to need it. :-) Out of curiosity: is there any downside to having server-start in your init.el? Best, -- Marcin Borkowski http://mbork.pl From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 04 10:53:18 2018 Received: (at 31709) by debbugs.gnu.org; 4 Jun 2018 14:53:18 +0000 Received: from localhost ([127.0.0.1]:33472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPqrC-0002hY-0t for submit@debbugs.gnu.org; Mon, 04 Jun 2018 10:53:17 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:44280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPqr5-0002hD-Mc for 31709@debbugs.gnu.org; Mon, 04 Jun 2018 10:53:12 -0400 Received: by mail-io0-f176.google.com with SMTP id g7-v6so14536640ioh.11 for <31709@debbugs.gnu.org>; Mon, 04 Jun 2018 07:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/Dzye5yQ7r3M/Fr5YO9YT5SRQ8lefrcxg5g1r+pJXro=; b=GkYubAwz4EGOJjMJKaNlBATCGRvojf51Ld2I5f7ALd0p26XIHcTegpuVeKB6T2gQ7B +1Deo01NKYJVpUAdf5oogdb8h1/fO/RosO86VLkghfndirONrKyygDiKaUwhFVj3ISCC lCNyXDp2tdxps1InsDQE7hRzZxu/+VlhvVcDvxJ/tXnVYz0DN/L0xAhYaixW/VYpoWVS 75jd5yUY9ZwK09e1lg8WTLRNMwj44xnxRmlZwVCfkhtH7CnbdQV50zE+uvEPlzaX5MXX WyL4LVFNHDnjGcQDc/efxxqtAiHu7IrPHUDRCVWXTjPqihDvTPz6AV1nxATunIi5h3UP zq6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/Dzye5yQ7r3M/Fr5YO9YT5SRQ8lefrcxg5g1r+pJXro=; b=ULCtci0tT3OkaJSeCHa+h1M0JmlvRG36QurgztIZBiK4MsZC0Fg++WNh3eOgiveN0z HOviaKPCiveSzSNSt2sdYy7r5tBvwZIR3/z3J6fHjuPP9LHOseK5qdbQAXRcuoKirWAc jV9Xh4bWoGvaAl6YyTL73WFN76JZL4mdYxMhHffbsn2luHxPvQ8veKQi2eXFkbFhpz6q aRTajK3/XdJWb2PHIS1iiAVoZmgKtm9Ymd6idWch1HcYs6ePiMzv52ONg0ZrLGwnotTA VbCoOmqVI72XsMy6jOKEOLbaZOwdgmHyUBgR3usEHUDV5blL3EwSk4vGYbMnkkoJkAkB xgvw== X-Gm-Message-State: ALKqPwexJ3gxbjLnxJtmZ2zaZQSFZ5Fi54CjuvGoveHI1NfVz/ek14br Odc5nER2vaPeZ1Pyy7AuqRaLrqysDbomhob8n04y4w== X-Google-Smtp-Source: ADUXVKJ/cqfLiDob9PgS2vE/MAYK52d5Sbn+Q2UcKw5afxwRwAjf2dzREkSknGP017yADZfK6F6yRVqjFxJyfiqrGwo= X-Received: by 2002:a6b:8dc9:: with SMTP id p192-v6mr21132578iod.70.1528123981991; Mon, 04 Jun 2018 07:53:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:2246:0:0:0:0:0 with HTTP; Mon, 4 Jun 2018 07:52:41 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Mon, 4 Jun 2018 15:52:41 +0100 Message-ID: Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary="0000000000001e9872056dd2175d" X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --0000000000001e9872056dd2175d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > On Mon, Jun 4, 2018 at 12:29 PM, Lars Ingebrigtsen wrote= : > > > buffer there that I want to get a hold of. But I'm at work, and there'= s > > no way to make Emacs start a server remotely. > Wot no way? Just attach gdb! Then waste rest of workday trying to start a server from there! Now seriously: if it is possible src/.gdbinit could have such a command pre-baked. Jo=C3=A3o --0000000000001e9872056dd2175d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jun 4, 2018 at 12:29 PM, Lars Ingebrigts= en <larsi@gnus.org> wrote:
<= br>> buffer there that I want to get a hold of.=C2=A0 But I'm at wor= k, and there's
> no way to make Emacs start a server remotely.

Wot no way? Just attach gdb! Then waste r= est of workday trying to start a server=C2=A0
from there!

Now seriously: if it is possible src/.gdbinit could have = such a command pre-baked.

Jo=C3=A3o=C2=A0
--0000000000001e9872056dd2175d-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 04 12:03:09 2018 Received: (at 31709) by debbugs.gnu.org; 4 Jun 2018 16:03:09 +0000 Received: from localhost ([127.0.0.1]:33511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPrwn-0005EN-Ov for submit@debbugs.gnu.org; Mon, 04 Jun 2018 12:03:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPrwj-0005DV-3j for 31709@debbugs.gnu.org; Mon, 04 Jun 2018 12:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPrwY-0003bL-P5 for 31709@debbugs.gnu.org; Mon, 04 Jun 2018 12:02:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrwY-0003bE-L9; Mon, 04 Jun 2018 12:02:50 -0400 Received: from [176.228.60.248] (port=2226 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fPrwX-0006q8-Tk; Mon, 04 Jun 2018 12:02:50 -0400 Date: Mon, 04 Jun 2018 19:02:57 +0300 Message-Id: <83y3fubkum.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: (message from Lars Ingebrigtsen on Mon, 04 Jun 2018 13:29:44 +0200) Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Lars Ingebrigtsen > Date: Mon, 04 Jun 2018 13:29:44 +0200 > > > It would be really nice if I could just ssh to the machine where the > Emacs is running, do "kill -USR1 " and then ... Emacs could do > something. Like load "~/.emacs.d/load-file-USR1" or something. Or just > start emacs-server. The node "Misc Events" in the ELisp manual explains how you can bind commands to 'sigusr1' and 'sigusr2' pseudo-function keys. Isn't that what you want? From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 09:27:57 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 13:27:57 +0000 Received: from localhost ([127.0.0.1]:34484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQC0D-0001yV-2F for submit@debbugs.gnu.org; Tue, 05 Jun 2018 09:27:57 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:56072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQC09-0001yJ-Mp for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 09:27:54 -0400 Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQBzq-0001jC-Uv; Tue, 05 Jun 2018 15:27:52 +0200 From: Lars Ingebrigtsen To: Marcin Borkowski Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: <877ene91op.fsf@mbork.pl> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU4HBYVBASFbk18ZEqr jFpySzlXMiWTdlKjGa4xAAACXElEQVQ4jV2TQXPbIBCFl/GIszgk5w5MqmtHVPIfUOKrEhV8pZOw vaaqXf5+HyDbSfeimf30eLvsQmmLLq1Jf1GkVGustYYuaQCtx1aSKMB+AmaUxLT7DFJaVz0w+fCi tbmCHKsZvGTPGvERrJ4DSXbLf0A/MBMzO1PyFUwHuHzlIAGOsgPqzU0xMsMhPql2+Qg67bPA8yxa 2Wew36w1BDK0DQABaOo+AWpmImntBw+TiwrBzfgUxcXb1GqPHiV0qPgKLIDk5ui9fJsO+uZh2AUZ Gxcd/5impMnmQSRoKzhHNwMcNPVVAhBn5uYxupDBuoFO28CO80Ec3qZpWmnfVYFF39E3Z8nUFEW3 eUAB4uaWBcqKJoOqeG4pxNNfACK6729AqJaa4yEwvsTLBdhBKfXzziUhFRT8WsGq7QiAHTmW/z2A 7euMZwAlOD5DgIuOpK022gxuJtW2KsgCIjz6ojBFgRnJgB3FJO31qG9ISEFBZC9mgHyU7rOilarG PbaIFlsDgMUGsC2O8nzzro6qCRcQcZvFw6A/1wYVLoqI7S7m1joHA0bPBXjn81HaGgDc1Q30I8XF mh4vwCGBfaBarnPEO/yP1vMlUs3nPiK5V9s/rH253ZzOBAIADP3sUjcgRZtEZrDsU3fOIxG7pwHT rcCj3P2E7Gk6fJXfJ2t97jJWUN7UNL2Lt2ldB0gkinf5qJx/lELdYTMHVmKX8hvs0/EE9DuX+Quv wcsDtspgfQ45n96vIO8hNg7PoAAj1H1/mm6xPQMzkuzwX0EoMRna5uTywFCMe/njfBoW/w9Gpx10 DmcNEQAAAABJRU5ErkJggg== Date: Tue, 05 Jun 2018 15:27:34 +0200 In-Reply-To: <877ene91op.fsf@mbork.pl> (Marcin Borkowski's message of "Mon, 04 Jun 2018 14:27:34 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Marcin Borkowski writes: > Out of curiosity: is there any downside to having server-start in your > init.el? No, not much. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 09:28:45 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 13:28:45 +0000 Received: from localhost ([127.0.0.1]:34488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQC0z-0001zt-EJ for submit@debbugs.gnu.org; Tue, 05 Jun 2018 09:28:45 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:56145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQC0y-0001zm-7K for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 09:28:44 -0400 Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQC0v-0005k6-Hd; Tue, 05 Jun 2018 15:28:43 +0200 From: Lars Ingebrigtsen To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU4HBYVBASFbk18ZEqr jFpySzlXMiWTdlKjGa4xAAACXElEQVQ4jV2TQXPbIBCFl/GIszgk5w5MqmtHVPIfUOKrEhV8pZOw vaaqXf5+HyDbSfeimf30eLvsQmmLLq1Jf1GkVGustYYuaQCtx1aSKMB+AmaUxLT7DFJaVz0w+fCi tbmCHKsZvGTPGvERrJ4DSXbLf0A/MBMzO1PyFUwHuHzlIAGOsgPqzU0xMsMhPql2+Qg67bPA8yxa 2Wew36w1BDK0DQABaOo+AWpmImntBw+TiwrBzfgUxcXb1GqPHiV0qPgKLIDk5ui9fJsO+uZh2AUZ Gxcd/5impMnmQSRoKzhHNwMcNPVVAhBn5uYxupDBuoFO28CO80Ec3qZpWmnfVYFF39E3Z8nUFEW3 eUAB4uaWBcqKJoOqeG4pxNNfACK6729AqJaa4yEwvsTLBdhBKfXzziUhFRT8WsGq7QiAHTmW/z2A 7euMZwAlOD5DgIuOpK022gxuJtW2KsgCIjz6ojBFgRnJgB3FJO31qG9ISEFBZC9mgHyU7rOilarG PbaIFlsDgMUGsC2O8nzzro6qCRcQcZvFw6A/1wYVLoqI7S7m1joHA0bPBXjn81HaGgDc1Q30I8XF mh4vwCGBfaBarnPEO/yP1vMlUs3nPiK5V9s/rH253ZzOBAIADP3sUjcgRZtEZrDsU3fOIxG7pwHT rcCj3P2E7Gk6fJXfJ2t97jJWUN7UNL2Lt2ldB0gkinf5qJx/lELdYTMHVmKX8hvs0/EE9DuX+Quv wcsDtspgfQ45n96vIO8hNg7PoAAj1H1/mm6xPQMzkuzwX0EoMRna5uTywFCMe/njfBoW/w9Gpx10 DmcNEQAAAABJRU5ErkJggg== Date: Tue, 05 Jun 2018 15:28:41 +0200 In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Mon, 4 Jun 2018 15:52:41 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jo=C3=A3o T=C3=A1vora writes: > Wot no way? Just attach gdb! Then waste rest of workday trying to > start a server from there! Heh, I didn't consider that, but that's ingenious. > Now seriously: if it is possible src/.gdbinit could have such a command > pre-baked. Yes, that would be very nice. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 09:31:07 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 13:31:07 +0000 Received: from localhost ([127.0.0.1]:34502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQC3H-00025n-IP for submit@debbugs.gnu.org; Tue, 05 Jun 2018 09:31:07 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:56355) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQC3F-00025d-7Q for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 09:31:05 -0400 Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQC3A-0005de-P7; Tue, 05 Jun 2018 15:31:04 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: <83y3fubkum.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU4HBYVBASFbk18ZEqr jFpySzlXMiWTdlKjGa4xAAACXElEQVQ4jV2TQXPbIBCFl/GIszgk5w5MqmtHVPIfUOKrEhV8pZOw vaaqXf5+HyDbSfeimf30eLvsQmmLLq1Jf1GkVGustYYuaQCtx1aSKMB+AmaUxLT7DFJaVz0w+fCi tbmCHKsZvGTPGvERrJ4DSXbLf0A/MBMzO1PyFUwHuHzlIAGOsgPqzU0xMsMhPql2+Qg67bPA8yxa 2Wew36w1BDK0DQABaOo+AWpmImntBw+TiwrBzfgUxcXb1GqPHiV0qPgKLIDk5ui9fJsO+uZh2AUZ Gxcd/5impMnmQSRoKzhHNwMcNPVVAhBn5uYxupDBuoFO28CO80Ec3qZpWmnfVYFF39E3Z8nUFEW3 eUAB4uaWBcqKJoOqeG4pxNNfACK6729AqJaa4yEwvsTLBdhBKfXzziUhFRT8WsGq7QiAHTmW/z2A 7euMZwAlOD5DgIuOpK022gxuJtW2KsgCIjz6ojBFgRnJgB3FJO31qG9ISEFBZC9mgHyU7rOilarG PbaIFlsDgMUGsC2O8nzzro6qCRcQcZvFw6A/1wYVLoqI7S7m1joHA0bPBXjn81HaGgDc1Q30I8XF mh4vwCGBfaBarnPEO/yP1vMlUs3nPiK5V9s/rH253ZzOBAIADP3sUjcgRZtEZrDsU3fOIxG7pwHT rcCj3P2E7Gk6fJXfJ2t97jJWUN7UNL2Lt2ldB0gkinf5qJx/lELdYTMHVmKX8hvs0/EE9DuX+Quv wcsDtspgfQ45n96vIO8hNg7PoAAj1H1/mm6xPQMzkuzwX0EoMRna5uTywFCMe/njfBoW/w9Gpx10 DmcNEQAAAABJRU5ErkJggg== Date: Tue, 05 Jun 2018 15:31:00 +0200 In-Reply-To: <83y3fubkum.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 04 Jun 2018 19:02:57 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> It would be really nice if I could just ssh to the machine where the >> Emacs is running, do "kill -USR1 " and then ... Emacs could do >> something. Like load "~/.emacs.d/load-file-USR1" or something. Or just >> start emacs-server. > > The node "Misc Events" in the ELisp manual explains how you can bind > commands to 'sigusr1' and 'sigusr2' pseudo-function keys. Isn't that > what you want? Like I said, if I knew that this was something that I was going to want, then I would have had it already. What I'm proposing here is that Emacs should have this functionality by default, so that anybody can use it when they discover that they need it. When they discover the need, it's too late to switch it on, because you can't talk to an Emacs remotely by default, if you get my drift. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 10:29:04 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 14:29:04 +0000 Received: from localhost ([127.0.0.1]:35251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQCxL-0005hn-P3 for submit@debbugs.gnu.org; Tue, 05 Jun 2018 10:29:03 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:39457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQCxJ-0005hG-RW for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 10:29:02 -0400 Received: from [10.253.37.70] (port=46653 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fQCxG-00063Y-Fr; Wed, 06 Jun 2018 02:28:58 +1200 Received: from [150.107.175.183] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 06 Jun 2018 02:28:58 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2018 02:28:58 +1200 From: Phil Sainty To: Lars Ingebrigtsen Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular =?UTF-8?Q?signal=3F?= In-Reply-To: References: <83y3fubkum.fsf@gnu.org> Message-ID: X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org, Eli Zaretskii , bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-06-06 01:31, Lars Ingebrigtsen wrote: > What I'm proposing here is that Emacs should have this functionality > by default, so that anybody can use it when they discover that they > need it. I think that's a nice idea, personally. I do run a server as standard, but I won't clobber an existing server, and I've been bitten by this issue on occasions when I had multiple emacs instances running and wanted to access a non-server instance from elsewhere. By default [sigusr1] and [sigusr2] are bound to 'ignore in special-event-map, so I don't see why one (or even both) of them couldn't instead be bound by default to a function which checks to see whether the file "~/.emacs.d/sigusr1.el" (or 2) exists and, if so, loads it. By default that function still wouldn't do very much unless anyone happens to have such a file existing already, so it doesn't seem like a totally crazy replacement change from 'ignore (especially if these signals are only ever sent by users); but people could then create the file at the time they need it. -Phil From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 10:38:38 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 14:38:38 +0000 Received: from localhost ([127.0.0.1]:35269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQD6Y-0007xB-OU for submit@debbugs.gnu.org; Tue, 05 Jun 2018 10:38:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQD6T-0007wv-S2 for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 10:38:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQD6I-0004ix-LU for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 10:38:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQD6I-0004it-IM; Tue, 05 Jun 2018 10:38:18 -0400 Received: from [176.228.60.248] (port=3843 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fQD6H-0001ug-W9; Tue, 05 Jun 2018 10:38:18 -0400 Date: Tue, 05 Jun 2018 17:38:28 +0300 Message-Id: <83a7s9b8nv.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: (message from Lars Ingebrigtsen on Tue, 05 Jun 2018 15:31:00 +0200) Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: <83y3fubkum.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Lars Ingebrigtsen > Cc: 31709@debbugs.gnu.org > Date: Tue, 05 Jun 2018 15:31:00 +0200 > > > The node "Misc Events" in the ELisp manual explains how you can bind > > commands to 'sigusr1' and 'sigusr2' pseudo-function keys. Isn't that > > what you want? > > Like I said, if I knew that this was something that I was going to want, > then I would have had it already. > > What I'm proposing here is that Emacs should have this functionality by > default, so that anybody can use it when they discover that they need > it. Which functionality? to load a file whose name is fixed in the sources? because if it isn't fixed, you'd have to prepare the feature anyway, so it isn't different from binding a key to a function. Having a fixed file name in Emacs that is loaded by an external signal would be a terrible security risk, no? From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 11:21:53 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 15:21:53 +0000 Received: from localhost ([127.0.0.1]:35348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQDmT-0004ah-2s for submit@debbugs.gnu.org; Tue, 05 Jun 2018 11:21:53 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:33585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQDmR-0004aX-1w for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 11:21:51 -0400 Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQDmM-0005Hz-LY; Tue, 05 Jun 2018 17:21:48 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEX+/v709PRMSksRDxHg 39+ioaGhMdrQAAACS0lEQVQ4jZ2UzZacIBCFi0T30sEHGLAeIFZmDz3FfkTq/V8lF51eThbhtHqs D+r32qTfLPq/5YkmosV518kt6sILVKurWTXLjaesU72sbbtPLW4ZT7e89gN4Xwour7hp8CF47/8d fPHYVbAVz1LC8p81fLv68kC+7n7xNEdeHhaF6ZjsPbsrOzdlgPg5W5J3yo+0Z2xFKr590mzx8FEA /CnSWQcIclCtVSvAHypNpL1N5A+apS9NtSKE/CYLstvmaD5wwo7W1RrARq3XtGmmSWkV7k2LVjhh smiR10wYBYCljLZ8iCRau6muJY9K4DQddOWT8MqqUy8+E6Wdm6H3SfZEPhw+oL2+AAhrh0Ki7JGG VEqZDowQINYBTKJAApoDJjjEcCIIBxBJAn3UBeWhW05PiTEOFyIAzpBRzcPjh7QYkWRJA5B2lx+H IpvVmCOClPMC1TQ0hrCwOn5acfQG9oRrMwSIbG9a/Q3QzjEeQ/Ni4yeH6p43WPtkLTfYufHJoV+g Wn9sk426qnG0cw+jnUJm5cnrcI/YjVtKvdMEwJo/tjm+Vkv7ttGEyrXk2l9gR4ydN0JzSEP2k6sj V3SbB+CFfgh1zdXCEkYZab+u9AZdwFV5oOwr9MgAwzJIKaGn4XFndQeX9/SJ4k5yNcypX0bEiFu6 wU+M1ty5p8sO1bBwOjCcX5hozGpfdgwKt45uzNRLG1MbkYEQAzcID99HWYYA6kgXNhvnJNcMlbsx /kFaTJcrEUh4iOPurN2TukBvTOqvfyH7AucXiH8BDOir5dFKYScAAAAASUVORK5CYII= Date: Tue, 05 Jun 2018 17:21:46 +0200 In-Reply-To: <83a7s9b8nv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 05 Jun 2018 17:38:28 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > Which functionality? to load a file whose name is fixed in the > sources? Yes. > Having a fixed file name in Emacs that is loaded by an external signal > would be a terrible security risk, no? Well... Would it? I mean, the file would be something like ~/.emacs.d/sigusr1.el or something. To send a signal to the Emacs process you either have to be the user or root, and if you're the user or root, you already have all the access to the process that you need to do, well, anything. Like it was pointed out here earlier, doing the "make a running Emacs without a server do something" can be achieved through gdb magic. It's just something that's very finicky, and loading a file instead would be something that a normal user could do. So: The same attack surface that we already have, but a feature that would be usable for a normal user. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 11:35:07 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 15:35:07 +0000 Received: from localhost ([127.0.0.1]:35359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQDzH-0004uK-Is for submit@debbugs.gnu.org; Tue, 05 Jun 2018 11:35:07 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:40863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQDzF-0004uB-DQ for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 11:35:06 -0400 Received: from [10.253.37.70] (port=46711 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fQDzB-0001Hl-Hq; Wed, 06 Jun 2018 03:35:01 +1200 Received: from [150.107.175.183] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 06 Jun 2018 03:35:01 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2018 03:35:01 +1200 From: Phil Sainty To: Eli Zaretskii Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular =?UTF-8?Q?signal=3F?= In-Reply-To: <83a7s9b8nv.fsf@gnu.org> References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> Message-ID: <3396fe3edac96118eeaea92013f4cbd4@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org, Lars Ingebrigtsen , bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-06-06 02:38, Eli Zaretskii wrote: > Having a fixed file name in Emacs that is loaded by an external signal > would be a terrible security risk, no? Bad Things could surely be done; but if the attacker has access to send signals to the user's emacs process or write files in the user's ~/.emacs.d directory, has a terrible security breach not already occurred? The notion of an attacker gaining access to a running Emacs session is certainly bad, but I'm unsure whether the proposed idea really worsens the risk in principle? -Phil From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 11:45:51 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 15:45:51 +0000 Received: from localhost ([127.0.0.1]:35383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQE9b-0005xA-R4 for submit@debbugs.gnu.org; Tue, 05 Jun 2018 11:45:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQE9W-0005li-Vw for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 11:45:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQE9N-0005ob-V6 for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 11:45:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQE9N-0005oQ-Pn; Tue, 05 Jun 2018 11:45:33 -0400 Received: from [176.228.60.248] (port=3950 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fQE9N-0001yJ-7T; Tue, 05 Jun 2018 11:45:33 -0400 Date: Tue, 05 Jun 2018 18:45:44 +0300 Message-Id: <83k1rd9qzb.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: (message from Lars Ingebrigtsen on Tue, 05 Jun 2018 17:21:46 +0200) Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Lars Ingebrigtsen > Cc: 31709@debbugs.gnu.org > Date: Tue, 05 Jun 2018 17:21:46 +0200 > > So: The same attack surface that we already have, but a feature that > would be usable for a normal user. I'm not an expert, but you get to argue with those who are ;-) From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 11:51:16 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 15:51:16 +0000 Received: from localhost ([127.0.0.1]:35387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQEEt-0007Gs-TC for submit@debbugs.gnu.org; Tue, 05 Jun 2018 11:51:16 -0400 Received: from smtp-3.orcon.net.nz ([60.234.4.44]:35656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQEEr-0007Gi-8t for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 11:51:14 -0400 Received: from [10.253.37.70] (port=34102 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fQEEo-00054c-JH; Wed, 06 Jun 2018 03:51:10 +1200 Received: from [150.107.175.183] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 06 Jun 2018 03:51:10 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2018 03:51:10 +1200 From: Phil Sainty To: Eli Zaretskii Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular =?UTF-8?Q?signal=3F?= In-Reply-To: <3396fe3edac96118eeaea92013f4cbd4@webmail.orcon.net.nz> References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> <3396fe3edac96118eeaea92013f4cbd4@webmail.orcon.net.nz> Message-ID: <0c6052eff2cd93fe83c953b3c9d3d1da@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org, Lars Ingebrigtsen , bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-06-06 03:35, Phil Sainty wrote: > On 2018-06-06 02:38, Eli Zaretskii wrote: >> Having a fixed file name in Emacs that is loaded by an external signal >> would be a terrible security risk, no? > > Bad Things could surely be done; but if the attacker has access to > send signals to the user's emacs process or write files in the user's > ~/.emacs.d directory, has a terrible security breach not already > occurred? The notion of an attacker gaining access to a running Emacs > session is certainly bad, but I'm unsure whether the proposed idea > really worsens the risk in principle? In fact if you normally run emacs as a server you're opening up the same security risk, no? An attacker who could send a signal to an emacs process can also run emacsclient to access an existing server; and I don't think we consider the practice of running an emacs server to be a terrible security risk. -Phil From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 12:21:05 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 16:21:05 +0000 Received: from localhost ([127.0.0.1]:35413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQEhi-0007yd-LX for submit@debbugs.gnu.org; Tue, 05 Jun 2018 12:21:05 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:52767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQEhd-0007xl-43 for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 12:21:00 -0400 Received: by mail-wm0-f43.google.com with SMTP id p126-v6so6098959wmb.2 for <31709@debbugs.gnu.org>; Tue, 05 Jun 2018 09:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=etP07xeZxCT3XNMq3OKHlWBoAOQo9dZPIr9BpMShKZo=; b=KGE1czF/ih+htGGNJQxa1zNo1u91fMPAOJTUsdsKUujg8ZKwgzFBH6kGi5xvUdhU3S cDd974aIS9DUu0bYrKoKQBSUX5Iie/a+Hd/I41PGqEBW80fRv4pN76mGAeMiAHnT4rQy llnmsqm6RZwnKVbNL5M+AmKWMhf081qUf3ocTsxma01mMyCIj0LfJWwMuYvXGQRK6OXw KHjOugi3ZrfgSiG8sT4xNTOJMj803Q6ltzb/wWstho1kUfPwfyP8xNMACpPddLjifpyz cLlRz7nGZvY9XIIT3Qji60tlr/ihGf7Z3qBMArKq3tA+BmNjC5lT4M8zxx3r3/C2XjtJ mCSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=etP07xeZxCT3XNMq3OKHlWBoAOQo9dZPIr9BpMShKZo=; b=rVlpkk9yZLLUg1GCeOnEQtBb2lI/PBxD0NB5s+qwbcPBzQXgzRJPkdbSU7oLUEKEMi dwDPtazRxQhlXzojwyK8eeeYwINuN29hZBIMHt8eCo9RPBhpFqShl5EfpWnesPXrrofO dSftUZxcnDMiXAIvAeDuVDYBnr2v14eA25wn4garRvVXib2d/7KcOdQoKKQLZwuJ9SKV 1WiIZO7lq8zGEZrh3RVFVTeTitRYkF9mHtlRZFiJATraAw+eyvGYeo0HQgboCF6oHfJN MF5RQZru4nU65bdgASamyte1QLv2wDi2ToAj8ptf6c/puL0RtGRc6A3q5I2PTq/I6OfJ a6hg== X-Gm-Message-State: APt69E1WalJg3fyLr4me3wdH126A/KupX2b/GU07stNBAu95nnezjK2t drnuNO+FoQ4mLNDbc0D4oPN1NNs5JGQ= X-Google-Smtp-Source: ADUXVKI/BjHu/jWksXNXGR7kM5LeWRFqpoAzX6aBkDOTCaLByXW1DRsgOl+uuaKE9dE1vkRAyjy5Xw== X-Received: by 2002:a1c:4405:: with SMTP id r5-v6mr11535349wma.62.1528215650876; Tue, 05 Jun 2018 09:20:50 -0700 (PDT) Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id m18-v6sm7510238wrr.93.2018.06.05.09.20.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 09:20:49 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 05 Jun 2018 18:20:49 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Tue, 05 Jun 2018 17:21:46 +0200") Message-ID: <878t7t2oim.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Eli Zaretskii writes: > >> Which functionality? to load a file whose name is fixed in the >> sources? > > Yes. > >> Having a fixed file name in Emacs that is loaded by an external signal >> would be a terrible security risk, no? > > Well... Would it? I mean, the file would be something like > ~/.emacs.d/sigusr1.el or something. To send a signal to the Emacs > process you either have to be the user or root, and if you're the user > or root, you already have all the access to the process that you need to > do, well, anything. Like it was pointed out here earlier, doing the > "make a running Emacs without a server do something" can be achieved > through gdb magic. I believe said gdb magic requires you to have ptrace capabilities on the process in question, which is a stronger requirement than being able to send a signal (unless you=CA=BCre root, of course). > It's just something that's very finicky, and loading a file instead > would be something that a normal user could do. > > So: The same attack surface that we already have, but a feature that > would be usable for a normal user. A slightly larger attack surface, I think. But more convenient to use. Although you could just bind server-name to something based on the current pid, and then run (server-start) in all your emacsen. Robert From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 12:24:55 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 16:24:56 +0000 Received: from localhost ([127.0.0.1]:35417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQElT-00083x-MU for submit@debbugs.gnu.org; Tue, 05 Jun 2018 12:24:55 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:39397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQElS-00083k-9f for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 12:24:54 -0400 Received: by mail-wr0-f195.google.com with SMTP id w7-v6so3092483wrn.6 for <31709@debbugs.gnu.org>; Tue, 05 Jun 2018 09:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=xzeq1502EsHpJ4voJxJl0ioZUvsKjScQQTNv0nfNRCE=; b=dFKxWd08sAVf3oCaMjs2cTu2Ewsz1T2GwsZ7MQlCfiHZiggHUAJ0Djqu5JqOgs82Na gT0hHr3R1RXmAkuqEOnBrlvtLsClzb4n1fjSgbFuP4t74aG2BXeX4uFaoG0GScdDboE4 AAIWEsxAtasIqIgbeAM9NuHyxUaQFdAJG4+5F/2i9Y2aFVZI1EASS9SSYJ2X5Xd8/+sz iCetgxVJ+wsv6xjl57QI75+ub5akbEv5bBmnZ7NcJ2/o0J+O3lg4y3bg31wlXI0c3IrQ MCfhGF8afLvBRrp20Xg/9vJWrQW21qF8co4lD7DjvfAyDce+nDty4KUutOfwMIJFW92D cm7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=xzeq1502EsHpJ4voJxJl0ioZUvsKjScQQTNv0nfNRCE=; b=nv6NLcbkSp0dgPjnb29sl0OeWwjAzeR4G+/J9h/SaJjlfV+UkIyGjWx96vf4gg4Azy 5UoAKKzxEdZbypQSkvBu0VD0z/yrSDh+tu/JLMCj3lmvI3DQaHqvQ331W/riTqEto+Nj viRj5t+qozGXPKAbV5lzlQuoofiw2kA1iLl0XW+F/+HCv8ht3u2hMSU9F0ahFAsJGKvN jo7PNA7vHl06JdAPWmvw0m5I6gXHHDesBo8cj/8xCN7EDi6A2vGYxb8tIUFFrm4+b6HO eZi5Oiu4OnOKbNQQwmXpizo5X/fCqIgdk2EXEEpgkjFFpd5JZwmBaGfWSa6o8eyie1FF PHNg== X-Gm-Message-State: APt69E3vPGe4quylVU86FYU0b/koybnJ6OnW1wgGF4siAUI5k2HGPVW6 2i3CYUTQu317yztZZxE7u8c= X-Google-Smtp-Source: ADUXVKJx9lvp6r5f7w3DgR2JKJtQ0KHjx1ELS4TcdCXegCGqOQ6C5Wwrxe+SCJ+6x6oAfk0p/I5WFQ== X-Received: by 2002:adf:9b1a:: with SMTP id b26-v6mr5803920wrc.206.1528215888324; Tue, 05 Jun 2018 09:24:48 -0700 (PDT) Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id j13-v6sm48573278wre.38.2018.06.05.09.24.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 09:24:47 -0700 (PDT) From: Robert Pluim To: Phil Sainty Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> <3396fe3edac96118eeaea92013f4cbd4@webmail.orcon.net.nz> <0c6052eff2cd93fe83c953b3c9d3d1da@webmail.orcon.net.nz> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 05 Jun 2018 18:24:46 +0200 In-Reply-To: <0c6052eff2cd93fe83c953b3c9d3d1da@webmail.orcon.net.nz> (Phil Sainty's message of "Wed, 06 Jun 2018 03:51:10 +1200") Message-ID: <874lih2oc1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org, Eli Zaretskii , Lars Ingebrigtsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Phil Sainty writes: > On 2018-06-06 03:35, Phil Sainty wrote: >> On 2018-06-06 02:38, Eli Zaretskii wrote: >>> Having a fixed file name in Emacs that is loaded by an external signal >>> would be a terrible security risk, no? >> >> Bad Things could surely be done; but if the attacker has access to >> send signals to the user's emacs process or write files in the user's >> ~/.emacs.d directory, has a terrible security breach not already >> occurred? The notion of an attacker gaining access to a running Emacs >> session is certainly bad, but I'm unsure whether the proposed idea >> really worsens the risk in principle? > > In fact if you normally run emacs as a server you're opening up the > same security risk, no? An attacker who could send a signal to an > emacs process can also run emacsclient to access an existing server; > and I don't think we consider the practice of running an emacs server > to be a terrible security risk. What if this hypothetical emacs was deliberately started without a server running, since it contains sensitive information? Starting a server when receiving a signal has now opened up access to that emacs where none existed before. Robert From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 12:37:01 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 16:37:01 +0000 Received: from localhost ([127.0.0.1]:35432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQExA-0008Mj-RI for submit@debbugs.gnu.org; Tue, 05 Jun 2018 12:37:01 -0400 Received: from smtp-3.orcon.net.nz ([60.234.4.44]:39168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQEx8-0008Ma-8V for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 12:36:59 -0400 Received: from [10.253.37.70] (port=5147 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fQEx3-0007PW-Qw; Wed, 06 Jun 2018 04:36:54 +1200 Received: from [150.107.175.207] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 06 Jun 2018 04:36:53 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2018 04:36:53 +1200 From: Phil Sainty To: Robert Pluim Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular =?UTF-8?Q?signal=3F?= In-Reply-To: <874lih2oc1.fsf@gmail.com> References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> <3396fe3edac96118eeaea92013f4cbd4@webmail.orcon.net.nz> <0c6052eff2cd93fe83c953b3c9d3d1da@webmail.orcon.net.nz> <874lih2oc1.fsf@gmail.com> Message-ID: <6468672194d6d77797b7abf854a568d9@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org, Lars Ingebrigtsen , bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-06-06 04:24, Robert Pluim wrote: > Phil Sainty writes: >> In fact if you normally run emacs as a server you're opening up the >> same security risk, no? An attacker who could send a signal to an >> emacs process can also run emacsclient to access an existing server; >> and I don't think we consider the practice of running an emacs server >> to be a terrible security risk. > > What if this hypothetical emacs was deliberately started without a > server running, since it contains sensitive information? Starting a > server when receiving a signal has now opened up access to that emacs > where none existed before. Certainly -- if we *are* treating emacs servers in general as a security risk, then the concern seems valid. -Phil From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 05 13:05:59 2018 Received: (at 31709) by debbugs.gnu.org; 5 Jun 2018 17:05:59 +0000 Received: from localhost ([127.0.0.1]:35447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQFPC-0000cH-R8 for submit@debbugs.gnu.org; Tue, 05 Jun 2018 13:05:59 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:37909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQFPB-0000c9-C2 for 31709@debbugs.gnu.org; Tue, 05 Jun 2018 13:05:58 -0400 Received: from [10.253.37.70] (port=57715 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fQFP8-0005rd-VX; Wed, 06 Jun 2018 05:05:55 +1200 Received: from [150.107.175.207] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 06 Jun 2018 05:05:54 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 06 Jun 2018 05:05:54 +1200 From: Phil Sainty To: Robert Pluim Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular =?UTF-8?Q?signal=3F?= In-Reply-To: <6468672194d6d77797b7abf854a568d9@webmail.orcon.net.nz> References: <83y3fubkum.fsf@gnu.org> <83a7s9b8nv.fsf@gnu.org> <3396fe3edac96118eeaea92013f4cbd4@webmail.orcon.net.nz> <0c6052eff2cd93fe83c953b3c9d3d1da@webmail.orcon.net.nz> <874lih2oc1.fsf@gmail.com> <6468672194d6d77797b7abf854a568d9@webmail.orcon.net.nz> Message-ID: <541c2434b1e6884a03b2119d3b7a483c@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31709 Cc: 31709@debbugs.gnu.org, Lars Ingebrigtsen , bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-06-06 04:36, Phil Sainty wrote: > On 2018-06-06 04:24, Robert Pluim wrote: >> What if this hypothetical emacs was deliberately started without a >> server running, since it contains sensitive information? Starting a >> server when receiving a signal has now opened up access to that emacs >> where none existed before. > > Certainly -- if we *are* treating emacs servers in general as a > security > risk, then the concern seems valid. Of course if the attacker can edit files in the user's ~/.emacs.d then there's already nothing to stop them from adding a custom [sigusr1] binding to the user's init file or some other loaded file in their config (or site-start.el or a core library if they had root), and enabling the behaviour we're discussing for the user's future emacs sessions (albeit in a way which might be more apparent to the user, depending on how they manage their config). -Phil From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 21 04:19:33 2019 Received: (at 31709) by debbugs.gnu.org; 21 Sep 2019 08:19:33 +0000 Received: from localhost ([127.0.0.1]:59037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBac9-0007Zi-0x for submit@debbugs.gnu.org; Sat, 21 Sep 2019 04:19:33 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBac7-0007ZY-3T for 31709@debbugs.gnu.org; Sat, 21 Sep 2019 04:19:32 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBac4-000829-1q for 31709@debbugs.gnu.org; Sat, 21 Sep 2019 10:19:30 +0200 From: Lars Ingebrigtsen To: 31709@debbugs.gnu.org Subject: Re: bug#31709: 27.0.50; Wishlist: Perhaps Emacs should load a file when getting a particular signal? References: Date: Sat, 21 Sep 2019 10:19:27 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 04 Jun 2018 13:29:44 +0200") Message-ID: <87muey12pc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: There didn't seem to be much enthusiasm for this feature, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31709 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) There didn't seem to be much enthusiasm for this feature, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 21 04:19:38 2019 Received: (at control) by debbugs.gnu.org; 21 Sep 2019 08:19:38 +0000 Received: from localhost ([127.0.0.1]:59040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBacE-0007a4-9P for submit@debbugs.gnu.org; Sat, 21 Sep 2019 04:19:38 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBacC-0007Zw-LQ for control@debbugs.gnu.org; Sat, 21 Sep 2019 04:19:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBacA-00082E-3B for control@debbugs.gnu.org; Sat, 21 Sep 2019 10:19:36 +0200 Date: Sat, 21 Sep 2019 10:19:33 +0200 Message-Id: <87lfui12p6.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31709 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 31709 wontfix close 31709 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 31709 wontfix close 31709 quit From unknown Sat Jun 21 10:29:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 19 Oct 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator