Base: Document MS_RDONLY
Also fix a couple of issues with the man pages.
This commit is contained in:
parent
4b300e085d
commit
39cde80545
Notes:
sideshowbarker
2024-07-19 06:00:43 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/39cde805456 Pull-request: https://github.com/SerenityOS/serenity/pull/2430 Reviewed-by: https://github.com/alimpfard
2 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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`).
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue