]> git.eshelyaron.com Git - emacs.git/commit
Improve SELinux handling in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 3 Aug 2023 11:17:02 +0000 (13:17 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 3 Aug 2023 11:17:02 +0000 (13:17 +0200)
commit588a0363d9a3ce6d678618ad545f7a8f9af27880
treea88b79dfafeee001d4b793d830ffc34be4d38d3b
parent859b150f3171d4946a383e07a9333c4df8efdd98
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.
lisp/net/tramp-sh.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el