computing_security_contexts.md: clarify mount options with comma
PATCH 1/1 computing_security_contexts.md: clarify mount options with comma
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.
Signed-off-by Dominick Grift <[email protected]>
--- src/computing_security_contexts.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
src/computing_security_contexts.md +4 -1
@@ -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)
Signature · 1 line
2.32.0
Quoted 2 lines · Dominick Grift
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).
Quoted 21 lines
Signed-off-by Dominick Grift <[email protected]>--- src/computing_security_contexts.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)src/computing_security_contexts.md +4
-1@@ -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)
Signature · 4 lines
gpg --locate-keys [email protected] Key fingerprint = FCD2 3660 5D6B 9D27 7FC6 E0FF DA7E 521F 10F6 4098 https://sks-keyservers.net/pks/lookup?op=get&search=0xDA7E521F10F64098 Dominick Grift