]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sys-utils: fix SELinux context example in mount.8
authorTodd Zullinger <tmz@pobox.com>
Sun, 18 Jun 2023 21:29:11 +0000 (17:29 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jun 2023 09:27:07 +0000 (11:27 +0200)
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>
sys-utils/mount.8.adoc

index d82815d638f132e8980ad3d929d29229517f1a12..74d2960e5401f4cf128553d741b6e96cf28a0d02 100644 (file)
@@ -523,9 +523,12 @@ The *rootcontext=* option allows you to explicitly label the root inode of a FS
 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).