In the description of the context option, the example which shows how to
properly quote is displayed incorrectly on terminals > 80 columns. This
leaves a seemingly needless '\' in the command, e.g.:
mount -t tmpfs none /mnt -o \ 'context="system_u:...'
The intent is to display the command properly on terminals <= 80
columns. Use a literal block to ensure the code is displayed
consistently, regardless of the terminal width.
Connect the blockquote to the previous indented items in the context
option description to ensure it is properly indented.
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Note that the kernel rejects any remount request that includes the context option, *even* when unchanged from the current context.
+
*Warning: the* _context_ *value might contain commas*, in which case the value has to be properly quoted, otherwise *mount* will interpret the comma as a separator between mount options. Don't forget that the shell strips off quotes and thus *double quoting is required*. For example:
++
____
+....
mount -t tmpfs none /mnt -o \
'context="system_u:object_r:tmp_t:s0:c127,c456",noexec'
+....
____
For more details, see *selinux*(8).