Re: [SELinux-notebook PATCH] computing_security_contexts.md: clarify mount options with comma

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dominick Grift <dominick.grift@xxxxxxxxxxx> 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@xxxxxxxxxxx>
> ---
>  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@xxxxxxxxxxx
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6  E0FF DA7E 521F 10F6 4098
https://sks-keyservers.net/pks/lookup?op=get&search=0xDA7E521F10F64098
Dominick Grift



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux