From: Dominick Grift <dominick.grift@defensec.nl>
To: selinux@vger.kernel.org
Subject: Re: [SELinux-notebook PATCH] computing_security_contexts.md: clarify mount options with comma
Date: Mon, 21 Jun 2021 19:17:42 +0200 [thread overview]
Message-ID: <871r8vi1c9.fsf@defensec.nl> (raw)
In-Reply-To: <20210621165854.285237-1-dominick.grift@defensec.nl> (Dominick Grift's message of "Mon, 21 Jun 2021 18:58:54 +0200")
Dominick Grift <dominick.grift@defensec.nl> writes:
> If you have a comma in your context then mount will reject it without
> escaped quotes. This can be confusing and it is not well documented.
Ignore this patch. It is actually thoroughly documented in mount(8).
>
> Signed-off-by: Dominick Grift <dominick.grift@defensec.nl>
> ---
> src/computing_security_contexts.md | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/computing_security_contexts.md b/src/computing_security_contexts.md
> index bb946b5..11d54b8 100644
> --- a/src/computing_security_contexts.md
> +++ b/src/computing_security_contexts.md
> @@ -175,7 +175,10 @@ Notes:
> keyword present.
> 2. There are mount options for allocating various context types:
> *context=*, *fscontext=*, *defcontext=* and *rootcontext=*. They are
> - fully described in the ***mount**(8)* man page.
> + fully described in the ***mount**(8)* man page except for the fact that if
> + your context contains a comma separator then you should wrap the context
> + with escaped quotes. For example:
> + *context=\"system_u:object_r:container_file_t:s0:c1,c2\"*.
>
> ### Network File System (nfsv4.2)
--
gpg --locate-keys dominick.grift@defensec.nl
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6 E0FF DA7E 521F 10F6 4098
https://sks-keyservers.net/pks/lookup?op=get&search=0xDA7E521F10F64098
Dominick Grift
prev parent reply other threads:[~2021-06-21 17:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-21 16:58 [SELinux-notebook PATCH] computing_security_contexts.md: clarify mount options with comma Dominick Grift
2021-06-21 17:17 ` Dominick Grift [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871r8vi1c9.fsf@defensec.nl \
--to=dominick.grift@defensec.nl \
--cc=selinux@vger.kernel.org \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.