From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Fix needed for communication with gpg-agent Date: Tue, 20 Feb 2007 08:43:54 -0500 Message-ID: References: <87irdzs6pp.fsf@stupidchicken.com> <87fy91g1pl.fsf@catnip.gol.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1171979213 22930 80.91.229.12 (20 Feb 2007 13:46:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2007 13:46:53 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 20 14:46:47 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HJVKQ-00015t-7a for ged-emacs-devel@m.gmane.org; Tue, 20 Feb 2007 14:46:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJVKP-0007aB-OB for ged-emacs-devel@m.gmane.org; Tue, 20 Feb 2007 08:46:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJVJ5-0007Al-6c for emacs-devel@gnu.org; Tue, 20 Feb 2007 08:45:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJVJ4-0007AN-JZ for emacs-devel@gnu.org; Tue, 20 Feb 2007 08:45:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJVJ4-0007AK-Gc for emacs-devel@gnu.org; Tue, 20 Feb 2007 08:45:22 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJVJ4-0008V5-5h for emacs-devel@gnu.org; Tue, 20 Feb 2007 08:45:22 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HJVHe-0007co-Rx; Tue, 20 Feb 2007 08:43:54 -0500 In-reply-to: <87fy91g1pl.fsf@catnip.gol.com> (message from Miles Bader on Tue, 20 Feb 2007 08:35:50 +0900) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66551 Archived-At: One possible way might be to have emacs start its own gpg-agent daemon, specifying a custom pinentry program that uses emacs itself for interaction (Emacs would set the GPG_AGENT_INFO environment variable to communicate that to invocations of gpg). That seems a wee-bit heavyweight, since Emacs generally doesn't know whether you're going to run gpg, but I suppose it might be a reasonable option for people that use a long-running Emacs session. Emacs could start this demon only the first time you try to use gpg. Then it would not be wasteful. We need to solve this problem one way or another now, because we decided to fix a certain security hole by telling users to use gpg-agent. We don't need the most elegant possible fix, but we need something reasonable to use.