From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#49724: 27.2; Tramp /sudoedit:: does not preserve file security context Date: Sun, 25 Jul 2021 22:14:46 +0200 Message-ID: <87y29uup55.fsf@gmx.de> References: <83h7gjy3bl.fsf@gnu.org> <83fsw3y1yr.fsf@gnu.org> <87v94zmt08.fsf@gmx.de> <83eebny181.fsf@gnu.org> <87v94ywpno.fsf@gmx.de> <87bl6qwksg.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8946"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49724 <49724@debbugs.gnu.org> To: xenodasein@tutanota.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 25 22:16:10 2021 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 1m7kXi-000280-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 22:16:10 +0200 Original-Received: from localhost ([::1]:38640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7kXh-00022c-9C for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 16:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7kXb-00022C-8a for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 16:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7kXb-0006r2-0q for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 16:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7kXa-00060U-Fp for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jul 2021 20:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49724 X-GNU-PR-Package: emacs Original-Received: via spool by 49724-submit@debbugs.gnu.org id=B49724.162724410723009 (code B ref 49724); Sun, 25 Jul 2021 20:16:02 +0000 Original-Received: (at 49724) by debbugs.gnu.org; 25 Jul 2021 20:15:07 +0000 Original-Received: from localhost ([127.0.0.1]:49444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7kWh-0005z2-B0 for submit@debbugs.gnu.org; Sun, 25 Jul 2021 16:15:07 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:53107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7kWe-0005y9-9P for 49724@debbugs.gnu.org; Sun, 25 Jul 2021 16:15:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627244087; bh=EseyBxI1DvXQWfYHiNtMTB4J2X/08F3e9fPTS2n5f+A=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Z2m9bWSf09BUkzn27vBYJZp6ArXpI8p3pMZaqOYKujXuLK/H2tWEnpE3CigA3ttxl oN1AN2/lROv/iQkBNUPJuZqgXRcd7EfZ22VVBT+0oJ+eP8om8RH0lnTKRCJ0iFoINF cdGRWOqvEgbSOxygQesavzelv34aOJIZ2ep+PKLo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.249.69]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MI5UN-1ltlsO1m23-00FFiq; Sun, 25 Jul 2021 22:14:47 +0200 In-Reply-To: (xenodasein@tutanota.de's message of "Sun, 25 Jul 2021 21:30:21 +0200 (CEST)") X-Provags-ID: V03:K1:+3rKGupupHSr+0uYSlRJ9n2gz1On6MNO+SLVqYV7Yx0fwZvHMtp nZmi1rmnF2V3Z0f7JSncySIYEBhjPBH7ZtVx791ZEx0yDcKbZEGgq1WYiVlnu7p0jn1cNN9 YeSZOcXcW5fxqmP4itAjRR6+3WdNZorFXitlX5Wn0Yl1ZSD/xL98qR5geSCDu1LwjSxswmt Eg8tAX1mO2jM8FQknznEA== X-UI-Out-Filterresults: notjunk:1;V03:K0:FLjXYhGrNss=:Wdg91QTNcFpsMOF/sb2mSJ gwUoYum6r1c/17+u0SbNfLlRnytYhKuO+b92IjILe8xnjxyYexgQp5/+/uls+DlJMCSy4aNnX ONlerZFvtvuXUkbgk/rUH9iaqzXmIbfWBYMtCuOG8ExKVWjh7IKDgQM2D8jDkS9AatGZ3Qse9 OMauU8cywaVvfJBVbg5S4CfoKlpVgb+82IHZ5RIZMxAQVN98TAGNU5as/Mh0Av1KDTuZQc2PA YChUdY9dr6rpaK4YBu4DQxLJQBfxb3T09IxEdk0aYekJ2oJzLYDe27F7gcRzmtzJF1rz3dpTv 6TMHS5YJP7MyviwCNHtgpupSMHKH0Q0lp1jwRwTK8Vkxriu2Ver61ioVTR9ctZM5p+CGrRcG2 rQ6u3qeGcqGjrrYZBmQV2R33DbJRdWSXmD9S3YEa/r/ncwfWKB0SnpJizFli+fuuK+BJ66H1P yF9Y60fQJOmtCcMt9RFnAc7lZoFUXOhUuYzTGFfmtd+kCbimxr4g6JFgBdz2/UGeZMhIFsOCF 6anMG8zn6amaes1H0Flk2BAno+4NRztcJfnsZCdFQ6+EmnZQCftT5XkOBEOsYqvJ1EwAA4jrI xATMH5T8bk5qXA4zboON7qCCp0UKEX5DxbyDq5isYjH/g5yvuhSOi7AyKqMJjsSGJc4afxC03 C/Y9e2EJ0aSSEJk1YNn4Iy521QnglHVHjJFPYhDh0XBaNw84HiyN8KXI5guAztwMGMikh468q PlS26hcnFEHchqsJpBHAuvOjAzx9IAVxuUkAwwXX3hqiJBPelxMuygntixKkyUrjPAjy4X7a 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:210734 Archived-At: xenodasein@tutanota.de writes: Hi, >> I see. As said, caching is disabled when "emacs -Q" is called. This is a >> problem for the sudoedit method. Could you try instead >> >> emacs -Q --eval '(setq tramp-cache-read-persistent-data t)' > > That indeed worked. I also tried -q without the eval part and that works = too, thanks for your help. > > There isn't much hint to side effects like this on the 'Emacs > Invocation' part of emacs manual, is this explained in elisp manual > maybe? What I found is "-Q=E2=80=99 Equivalent to =E2=80=98-q --no-site-f= ile > --no-splash=E2=80=99." and that it doesn't load 'default.el'. The described emacs invocation is Tramp specific. I've added the hint meanwhile to the Tramp manual, chapter "6 Reporting Bugs and Problems". It reads now --8<---------------cut here---------------start------------->8--- To exclude cache-related problems, flush all caches before running the test, *note Cleanup remote connections::. Alternatively, and often better for analysis, reproduce the problem in a clean Emacs session started with =E2=80=98emacs -Q=E2=80=99. Then, TRAMP does not load= the persistency file (*note Connection caching::), and it does not use passwords from =E2=80=98auth-source.el=E2=80=99 (*note Password handling::)= . If you really need a password cache, for example for the =E2=80=98sudoedit=E2=80= =99 method, call emacs -Q -l tramp \ --eval '(setq tramp-cache-read-persistent-data t)' \ --eval '(tramp-cleanup-all-connections)' --8<---------------cut here---------------end--------------->8--- Did you have a chance to test the patch, solving your sudoedit selinux problem? Best regards, Michael.