From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#41628: [PATCH] Allow emacsclient to connect to other user's socket when using -s Date: Wed, 05 Aug 2020 19:32:38 +0200 Message-ID: <87sgd1hubt.fsf@gnus.org> References: <835zcckt1p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19759"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rabite@posteo.de, 41628@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 05 19:33:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3NHq-00052G-Gi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Aug 2020 19:33:10 +0200 Original-Received: from localhost ([::1]:46026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3NHp-0005o0-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Aug 2020 13:33:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3NHi-0005nr-Sk for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2020 13:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3NHi-00019y-Jh for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2020 13:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k3NHi-00020e-HU for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2020 13:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Aug 2020 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41628 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41628-submit@debbugs.gnu.org id=B41628.15966487767701 (code B ref 41628); Wed, 05 Aug 2020 17:33:02 +0000 Original-Received: (at 41628) by debbugs.gnu.org; 5 Aug 2020 17:32:56 +0000 Original-Received: from localhost ([127.0.0.1]:52182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3NHc-000209-Ev for submit@debbugs.gnu.org; Wed, 05 Aug 2020 13:32:56 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3NHY-0001zr-Nq for 41628@debbugs.gnu.org; Wed, 05 Aug 2020 13:32:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eDGsp+vn45JqBDgVFSTnHuNX/2/Q8DpvB8ai3+mkR0g=; b=YnlHxO8AZ3K48Ioz5u0UC1tULf Wgfz+26qjxHzBo4NGh7jfnxKy/9KxSRxZUDb2R2J0BqaqPN6j2vfpq5+sUyMwxzbwr2F5iWpKmHRP Ecz3tRBW8bKDyjVg926qZ8WljTvvy+RhC8HU2/vSRV9C10xBiQQykPvHsS/hEkBNGsFk=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3NHM-0007At-19; Wed, 05 Aug 2020 19:32:46 +0200 In-Reply-To: <835zcckt1p.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 31 May 2020 18:44:50 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184120 Archived-At: Eli Zaretskii writes: >> Since commit 5c0d8bb95bbd5354e6b2cd2e56a91afe4e780759 emacsclient won't >> connect to my usual emacs session when run as root. I use this all the >> time to edit files, combined with "-T /sudo:root@localhost" to handle >> permissions. Using a separate emacs process would be unpractical as it >> would require setting up a whole new emacs configuration and keeping it >> in sync with my main one. I think this is a common use-case for those >> who have an emacs-server running all the time and supporting it makes a >> lot of sense. In principle I see no reason emacsclient should refuse a >> connection that is possible in theory. >> >> It looks like this "feature" has been explicitly disabled, maybe because >> it might triggered unintentionally if running su doesn't set USER or >> something? > > The discussion which led to that change is here: > > https://lists.gnu.org/r/emacs-devel/2018-11/msg00019.html So unless I understand something here, this is not something we want to allow (because of security concerns), so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no