From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 588a0363d9a: Improve SELinux handling in Tramp Date: Thu, 03 Aug 2023 19:49:09 +0800 Message-ID: <877cqcbb2i.fsf@yahoo.com> References: <169106143410.16457.9843450418997998201@vcs2.savannah.gnu.org> <20230803111715.B86F3C038BB@vcs2.savannah.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="30824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Albinus To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 03 13:50:37 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qRWqj-0007pi-38 for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Aug 2023 13:50:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRWpY-0008LD-A4; Thu, 03 Aug 2023 07:49:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRWpW-0008Kf-7e for emacs-devel@gnu.org; Thu, 03 Aug 2023 07:49:22 -0400 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRWpU-0001CU-1s for emacs-devel@gnu.org; Thu, 03 Aug 2023 07:49:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691063357; bh=i5sb/eVxY0Asf1pCrHwKCNP1zAaqRZkIxqXn9gzpWTQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=gJ9ZVvQ842aYvDKHFhRGcGpTZy8xswv5EuV3fGtCMvNe1XsTMVouUVYbwyTSswBHU22dGnUAQ+79xwVeknEfijf8Zo0MNBPvmlNwBK8pfE962nEDRMH75+NfacYRP+pbMTxvETWPrm9YTxi3jQ6oYII2S0lA4PRBH0U71ch+8bzjuEZm6UMjwSqnHhgnwBavSB2czl0bbPaFMvnoy/GbVYmnSbbFdDKmntXUfRYDHylDw4lmqQE13Sr6saNZLlwa9xlY0k+MbQth9bkO7YCjvrrT9H5b3E5/4bkfFAZPMG/jpKvHbgFQiA+1kt/YZ/vl7qQnib4kOCbYGLosPxvP/w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691063357; bh=UpBa1oQE9ySwYf1CbORAweUKPP62qlaeFdKrHmnuAw4=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Dz37eAB6w2G7qJwbpj0ebgAUeWmpV4VTGcClg+PtrFb+mJ9NKpCKJfLrAuIaWCSPpgu6u9MNDIhEZ9WsQ9IWlXXRRj1v55iQn6O4n/9JfyEeJhP23p5MHLpqzkZqdjXXDT02oBzPCiFXlFwW2vFQWfytE3ktfZoxiNkamwfvx2FSIWbjaXTPGU7BV6vl+QxJqWxNlDoSLXf1lHZsqk5spYYaib2Xk+IMFwfbtXj5wVKMmkJiPXxiJ6uTJg/KcUciE8hoc9cAc/KlAT5NAFlJApOkkr75y0d8F3My5BNSt4c/eEEcQ3exRW3mXN9ccGUuj3svnSrSyIJ2ss7w17/c2g== X-YMail-OSG: v0aVEcsVM1nx.ncxUv37TRq7RiCVYJCdkDu1XmcMgp.f0NYwaiJHAEatX6V46d7 7e4OQXDU7d2fHPqqmKpMuKYhMKNe4KatXmjATUjv6YLkek2vsszwJo15wq5.qvEmxj29278kiTVs maG0jO8YKCSmQ7TgxpYWzPOKBs0Fil7NcOpnmqZSMNAsxbDSSsLgurMgh1IUCj1KlRktYDwRo2B6 Gpv4HCkLZHr.kv08X7lGRcYbh_cpdAc_dTRBI2IsF5tk9E8IFt7f0aTWpjJxVuRe1n0D6wE9IznD 9YIt80PLH1SMcibacueJ4G7dC6sO7QR0CucOE3vFKRObufC1_1B52jo041MISXBsmRwcxDvALd7T zjKHSthh6wOBe3AAkZMOxPh_K57BwVoqzsLv0JWT.0F_Z_WtEavP3ec6gST3dJwAaLlmf54FbiSb LB0JenHD2y9infsqpxSVxsOxlUlcVns2NGAlr6F0fO63nqqxPEbx0qbASv8K2QnpUs1ApuA0_hPt nWypXdKJUXP_DOR3F3RaUpm.tU8xL6SnxOIWDdIvJbuo5DA1USYIy8MR..UiGWgb53uWEpj.Fu6D SNqRmHqgVLedVSllapuHE6JZefOhuT9mPHYDijExZs1pKHBBrdT8Tpze8ft9I2SUu_p0E76Q2TQP 5BchmdgU87RnNwD_zjCx5Zvg5mIeBfvvIDR4V0zPssuXx1tpuUZE0pG4d7.UnMznDOiFq7Pvn6VU 6uLew2Qlf9YsaMIJUJbaXa5lbY7pUwic3qhNtATnfNrBtq3bewT..DpG6xCoF3AR1lCASWf.DgZa kL.UguRvkS8WKCR3IwzhWbimV3rMduB2ZFdH_IJ4wB X-Sonic-MF: X-Sonic-ID: 54b4f15f-15a0-405d-accb-b14033e8d4b0 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 3 Aug 2023 11:49:17 +0000 Original-Received: by hermes--production-sg3-6b8fc8d58f-wjdpm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1d548d37628c1e1605a87ed953290d46; Thu, 03 Aug 2023 11:49:13 +0000 (UTC) In-Reply-To: <20230803111715.B86F3C038BB@vcs2.savannah.gnu.org> (Michael Albinus's message of "Thu, 3 Aug 2023 07:17:14 -0400 (EDT)") X-Mailer: WebService/1.1.21685 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.200; envelope-from=luangruo@yahoo.com; helo=sonic301-31.consmr.mail.ne1.yahoo.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308255 Archived-At: Michael Albinus writes: > branch: master > commit 588a0363d9a3ce6d678618ad545f7a8f9af27880 > Author: Michael Albinus > Commit: Michael Albinus > > Improve SELinux handling in Tramp > > * lisp/net/tramp-sh.el (tramp-stat-file-attributes-with-selinux) > (tramp-stat-directory-files-and-attributes-with-selinux): New defconst. > (tramp-do-file-attributes-with-ls) > (tramp-do-file-attributes-with-stat) > (tramp-do-directory-files-and-attributes-with-stat): Return also > SELinux context. > (tramp-remote-selinux-p, tramp-do-copy-or-rename-file): Adapt docstring. > > * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file) > (tramp-sudoedit-remote-selinux-p): Adapt docstring. > (tramp-sudoedit-file-attributes-with-selinux): New defconst. > (tramp-sudoedit-handle-file-attributes): Use it. > > * lisp/net/tramp.el (tramp-convert-file-attributes): > Extract SELinux context. If my understanding is correct, then with this change Tramp starts to return SELinux context information from file-attributes. Doesn't this mean Dired and similar should be adjusted to refrain from trying to restore SELinux attributes when performing a copy from a remote directory, given that different machines can have completely incompatible SELinux configurations?