Base: Document MS_RDONLY

Also fix a couple of issues with the man pages.
This commit is contained in:
Sergey Bugaev 2020-05-28 18:05:02 +03:00 committed by Andreas Kling
parent 4b300e085d
commit 39cde80545
Notes: sideshowbarker 2024-07-19 06:00:43 +09:00
2 changed files with 3 additions and 2 deletions

View file

@ -24,7 +24,7 @@ over `target`.
For Ext2FS, `source_fd` must refer to an open file descriptor to a file containing
the filesystem image. This may be a device file or any other seekable file. All
the other filesystems ignore the `source_fd` you can even pass an invalid file
the other filesystems ignore the `source_fd` - you can even pass an invalid file
descriptor such as -1.
The following `flags` are supported:
@ -33,6 +33,7 @@ The following `flags` are supported:
* `MS_NOEXEC`: Disallow executing any executables from this file system.
* `MS_NOSUID`: Ignore set-user-id bits on executables from this file system.
* `MS_BIND`: Perform a bind-mount (see below).
* `MS_RDONLY`: Mount the filesystem read-only.
These flags can be used as a security measure to limit the possible abuses of the newly
mounted file system.

View file

@ -20,7 +20,7 @@ If invoked as `mount -a`, `mount` mounts all the filesystems configured in
[`SystemServer`(7)](../man7/SystemServer.md).
Otherwise, `mount` performs a single filesystem mount. Source should be a path
to a file containing the filesystem image. Target, and fstype have the same
to a file containing the filesystem image. Target and fstype have the same
meaning as in the [`mount`(2)](../man2/mount.md) syscall (if not specified,
fstype defaults to `ext2`).