From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: xenodasein--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49724: 27.2; Tramp /sudoedit:: does not preserve file security context Date: Sat, 24 Jul 2021 19:47:20 +0200 (CEST) Message-ID: Reply-To: xenodasein@tutanota.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="16321"; mail-complaints-to="usenet@ciao.gmane.io" To: 49724@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 24 20:11:14 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 1m7M7G-000416-45 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 20:11:14 +0200 Original-Received: from localhost ([::1]:37182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7M7E-0004wP-OC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 14:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7M74-0004vn-Rk for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7M74-0001Gc-Jt for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7M74-0002MS-F8 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: xenodasein@tutanota.de Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2021 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49724 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16271502599064 (code B ref -1); Sat, 24 Jul 2021 18:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jul 2021 18:10:59 +0000 Original-Received: from localhost ([127.0.0.1]:46947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7M70-0002M8-4B for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:10:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7LkD-0001o2-Qx for submit@debbugs.gnu.org; Sat, 24 Jul 2021 13:47:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7LkD-0007Sa-H6 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 13:47:25 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:41578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7LkB-0002Eb-Mp for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 13:47:25 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 46754FA0313 for ; Sat, 24 Jul 2021 17:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1627148840; s=s1; d=tutanota.de; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=wtDrVMHMoIBQGU22BLhVmEUwmlC/GkHeFhMOjd3RkS0=; b=ekaHaJOT39cyJxbolE8fUsU0SBZCPCLYDMG93KGaSbhSTbxhNVmY+Iv+ocPX+W3g OF/jkOGsF/A5Rjsr0axNLi+SvXN38+PEoZdC5PA/RNdthgcHQ2QFxTx3hrY7T1utgb0 Wk0Qw5+eu0jhcpNSfPl64uPL8PqzdONhJw95ntSEjuRkfB4TS69+HkIGu5ZxeMk6evV tlfgnLFL2o6195T2IgMq/oUGfwKAhSaE7hGgi2jGdqoXQoLRgPEW317UMzZ4jr53h+u 36CQ5/Q4OwNsguckDhpCVlbMDopLDHVdE2Cyvc6Je12ibozi0B/3IMfgz4/tZgmSKoy O6T5OI2e4A== Received-SPF: pass client-ip=81.3.6.162; envelope-from=xenodasein@tutanota.de; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 24 Jul 2021 14:10:57 -0400 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:210653 Archived-At: The command: ls -Z /etc/fstab Outputs: unconfined_u:object_r:etc_t:s0 /etc/fstab On an unmodified fstab file. If I modify the file using 'sudoedit' command, which uses GNU Nano on this system, preserves the same extended file attributes. However, after using emacs -Q: C-x C-f /sudoedit::/etc/fstab C-x C-s The command: ls -Z /etc/fstab Outputs: unconfined_u:object_r:user_tmp_t:s0 /etc/fstab Which will prevent system from booting. In GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.29, = cairo version 1.17.4) of 2021-06-14 built on buildvm-x86-32.iad2.fedoraproject.org Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Fedora 34 (Thirty Four) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. current-kill: Kill ring is empty [2 times] gui-get-primary-selection: No selection is available Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -O= 2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: =C2=A0 value of $LANG: en_US.utf8 =C2=A0 value of $XMODIFIERS: @im=3Dnone =C2=A0 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 eldoc-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 tool-bar-mode: t =C2=A0 menu-bar-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t =C2=A0 line-number-mode: t =C2=A0 transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 44393 10632) (symbols 48 6007 1) (strings 32 15439 2231) (string-bytes 1 504347) (vectors 16 9300) (vector-slots 8 125174 13110) (floats 8 19 45) (intervals 56 261 0) (buffers 1000 11))