From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#37445: 27.0.50; Permission denied after make install Date: Wed, 18 Sep 2019 12:12:28 -0700 Organization: UCLA Computer Science Department Message-ID: <149776e9-3165-c046-06b1-e30d9d59cb13@cs.ucla.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="90293"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: Tino Calancha , 37445@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 18 21:13:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAfO3-000NIx-JT for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2019 21:13:11 +0200 Original-Received: from localhost ([::1]:34654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAfO2-0001kn-7j for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Sep 2019 15:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59006) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAfNv-0001kV-HW for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 15:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAfNu-00012H-Gz for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 15:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAfNu-00012D-DC for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 15:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iAfNu-0004T6-5k for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2019 15:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2019 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37445 X-GNU-PR-Package: emacs Original-Received: via spool by 37445-submit@debbugs.gnu.org id=B37445.156883396117144 (code B ref 37445); Wed, 18 Sep 2019 19:13:02 +0000 Original-Received: (at 37445) by debbugs.gnu.org; 18 Sep 2019 19:12:41 +0000 Original-Received: from localhost ([127.0.0.1]:54838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAfNZ-0004SS-7K for submit@debbugs.gnu.org; Wed, 18 Sep 2019 15:12:41 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAfNW-0004SA-Je for 37445@debbugs.gnu.org; Wed, 18 Sep 2019 15:12:39 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7C3D21604F2; Wed, 18 Sep 2019 12:12:32 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id cPZoCGDFc_Vk; Wed, 18 Sep 2019 12:12:31 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B250D160511; Wed, 18 Sep 2019 12:12:31 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DfaMxS6m4PMF; Wed, 18 Sep 2019 12:12:31 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8D5621604F2; Wed, 18 Sep 2019 12:12:31 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166684 Archived-At: On 9/18/19 2:02 AM, Tino Calancha wrote: > # Install Emacs w/ the first user > $ whoami > ec2-user > $ cd ~/soft/emacs-master > $ make && sudo make install > # Launch Emasc w/ the second user > $ su user_foo > $ cd > $ emacs > emacs: Reading symbolic link: Permission denied, /home/ec2-user/soft This appears to be a configuration error in how Emacs master starts up. Apparently if you build Emacs in (say) /tmp/foo and then install Emacs, the Emacs you install consults files in /tmp/foo during startup. After you remove /tmp/foo, someone else can create a /tmp/foo and hijack anybody who starts up the installed Emacs. I papered over the problem with commit 2019-09-18T11:21:19Z!eggert@cs.ucla.edu (735940f4551a43f3b4381105dc074cd7d494f2f3), which suppresses the diagnostic and let Emacs continue to run. However, the configuration error remains and I will try to squeeze free time to look at it. I should be able to reproduce the original problem by compiling with -DPICKY_EACCES. That is, the idea is to use -DPICKY_EACCES to debug longstanding bugs in Emacs that we otherwise might not have discovered.