unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: xenodasein@tutanota.de
Cc: 49724 <49724@debbugs.gnu.org>
Subject: bug#49724: 27.2; Tramp /sudoedit:: does not preserve file security context
Date: Sun, 25 Jul 2021 22:14:46 +0200	[thread overview]
Message-ID: <87y29uup55.fsf@gmx.de> (raw)
In-Reply-To: <MfU8OVx--3-2@tutanota.de> (xenodasein@tutanota.de's message of "Sun, 25 Jul 2021 21:30:21 +0200 (CEST)")

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’ Equivalent to ‘-q --no-site-file
> --no-splash’." 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 ‘emacs -Q’.  Then, TRAMP does not load the
persistency file (*note Connection caching::), and it does not use
passwords from ‘auth-source.el’ (*note Password handling::).  If you
really need a password cache, for example for the ‘sudoedit’ 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.





  reply	other threads:[~2021-07-25 20:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-24 17:47 bug#49724: 27.2; Tramp /sudoedit:: does not preserve file security context xenodasein--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-24 18:27 ` Eli Zaretskii
2021-07-24 18:46   ` xenodasein--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-24 18:57     ` Eli Zaretskii
2021-07-24 19:06       ` Michael Albinus
2021-07-24 19:13         ` Eli Zaretskii
2021-07-24 19:17           ` xenodasein--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-25 12:20             ` Michael Albinus
2021-07-25 13:04               ` xenodasein--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-25 14:05                 ` Michael Albinus
2021-07-25 19:30                   ` xenodasein--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-25 20:14                     ` Michael Albinus [this message]
2021-07-26  7:57                       ` Michael Albinus
2021-07-26 13:40                       ` xenodasein--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-31 13:53                         ` Michael Albinus
2021-08-25 10:02                           ` Michael Albinus
2021-07-24 19:20           ` Michael Albinus
2021-07-25 12:18           ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y29uup55.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=49724@debbugs.gnu.org \
    --cc=xenodasein@tutanota.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).