From: Glenn Morris <rgm@gnu.org>
To: 29287@debbugs.gnu.org
Cc: michael.albinus@gmx.de
Subject: bug#29287: tramp-test25-file-selinux fails
Date: Mon, 13 Nov 2017 15:09:17 -0500 [thread overview]
Message-ID: <ilpo8mrlea.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <e3vaieou2u.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 13 Nov 2017 14:30:01 -0500")
PS I think the flaw is in this bit:
;; Different permissions mean different SELINUX context.
(set-file-modes tmp-name1 #o777)
(set-file-modes tmp-name2 #o444)
No, they don't. File modes and SELinux context are separate.
Perhaps you could use something (file-selinux-context "/") for a value
that is guaranteed to exist and be different from a temp file.
Though I don't know if users can always set a random file's context to
root_t (it works here).
next prev parent reply other threads:[~2017-11-13 20:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-13 19:30 bug#29287: tramp-test25-file-selinux fails Glenn Morris
2017-11-13 20:09 ` Glenn Morris [this message]
2017-11-13 20:11 ` Glenn Morris
2017-11-14 9:25 ` Michael Albinus
2017-11-14 17:21 ` Glenn Morris
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=ilpo8mrlea.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=29287@debbugs.gnu.org \
--cc=michael.albinus@gmx.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).