diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-28 18:05:02 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-29 07:53:30 +0200 |
commit | 39cde8054561d53c9107459c5535c91acf2db0d2 (patch) | |
tree | 1709805cc35bb4a966d29664f1869466911032df /Base/usr/share | |
parent | 4b300e085d3fcad038b180ab90a9546bdfcc1335 (diff) | |
download | serenity-39cde8054561d53c9107459c5535c91acf2db0d2.zip |
Base: Document MS_RDONLY
Also fix a couple of issues with the man pages.
Diffstat (limited to 'Base/usr/share')
-rw-r--r-- | Base/usr/share/man/man2/mount.md | 3 | ||||
-rw-r--r-- | Base/usr/share/man/man8/mount.md | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Base/usr/share/man/man2/mount.md b/Base/usr/share/man/man2/mount.md index a19fdc979c..d9bd088e6a 100644 --- a/Base/usr/share/man/man2/mount.md +++ b/Base/usr/share/man/man2/mount.md @@ -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. diff --git a/Base/usr/share/man/man8/mount.md b/Base/usr/share/man/man8/mount.md index f63d45cf23..e5d2e8afb2 100644 --- a/Base/usr/share/man/man8/mount.md +++ b/Base/usr/share/man/man8/mount.md @@ -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`). |