From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacsclient socket ownership Date: Fri, 02 Nov 2018 16:30:12 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1541191635 23343 195.159.176.226 (2 Nov 2018 20:47:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2018 20:47:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 21:47:11 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIgLW-0005xf-5L for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 21:47:10 +0100 Original-Received: from localhost ([::1]:53362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIgNc-0007dx-JA for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 16:49:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIgKs-0005Xm-Sd for emacs-devel@gnu.org; Fri, 02 Nov 2018 16:46:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIg5f-000158-PG for emacs-devel@gnu.org; Fri, 02 Nov 2018 16:30:52 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIg5f-0000wJ-H2 for emacs-devel@gnu.org; Fri, 02 Nov 2018 16:30:47 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id wA2KUCcI028688; Fri, 2 Nov 2018 16:30:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 53F646A512; Fri, 2 Nov 2018 16:30:12 -0400 (EDT) In-Reply-To: (Paul Eggert's message of "Fri, 2 Nov 2018 13:08:53 -0700") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6410=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6410> : inlines <6951> : streams <1803127> : uri <2743109> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230987 Archived-At: >> I'm sure we can come up with scenarios where this problem can >> be exploited. > Yes, me too. Let's close the hole. Not sure how, tho: as mentioned, just checking that the socket is owned by root might not be sufficient (the attacker may have just put a symlink to some other socket that belongs to root but that really doesn't expect the kind of data emacsclient sends). Stefan