[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 588a0363d9a: Improve SELinux handling in Tramp
|
From: |
Po Lu |
|
Subject: |
Re: master 588a0363d9a: Improve SELinux handling in Tramp |
|
Date: |
Thu, 03 Aug 2023 19:49:09 +0800 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Michael Albinus <Michael.Albinus@gmx.de> writes:
> branch: master
> commit 588a0363d9a3ce6d678618ad545f7a8f9af27880
> Author: Michael Albinus <michael.albinus@gmx.de>
> Commit: Michael Albinus <michael.albinus@gmx.de>
>
> 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?
- Re: master 588a0363d9a: Improve SELinux handling in Tramp,
Po Lu <=