From 81e1aa0aa3fb1d5f11dfd6d4076d3617f246e547 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 3 Oct 2021 22:19:08 +0200 Subject: [PATCH] Manpages: Don't reference non-existing chroot Chroot exists neither in code nor in documentation. If we add-in the feature again, it will be simple enough to add it back in to the documentation. For now, let's clean it up, instead of refering to things that don't exist. Found by markdown-checker. --- Base/usr/share/man/man2/mount.md | 5 ++--- Base/usr/share/man/man2/pledge.md | 1 - Base/usr/share/man/man2/unveil.md | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Base/usr/share/man/man2/mount.md b/Base/usr/share/man/man2/mount.md index 7c5b2c6854..dc40ae4b7f 100644 --- a/Base/usr/share/man/man2/mount.md +++ b/Base/usr/share/man/man2/mount.md @@ -72,9 +72,8 @@ to use the new mount flags after remounting a filesystem, a process can call `chdir()` with the path to the same directory. Similarly, to change the mount flags used by the root directory, a process can -call [`chroot_with_mount_flags`(2)](chroot.md), specifying a single slash (`/`) -as the path along with the desired flags. While it is possible to remount the -root filesystem using `MS_REMOUNT`, it would only have a noticeable effect if +remount the root filesystem using `MS_REMOUNT`. +However, it only have a noticeable effect if the kernel was to launch more userspace processes directly, the way it does launch the initial userspace process. diff --git a/Base/usr/share/man/man2/pledge.md b/Base/usr/share/man/man2/pledge.md index 98ae515c6b..a6572c7127 100644 --- a/Base/usr/share/man/man2/pledge.md +++ b/Base/usr/share/man/man2/pledge.md @@ -45,7 +45,6 @@ If the process later attempts to use any system functionality it has previously * `dpath`: Creating new device files * `chown`: Changing file owner/group * `fattr`: Changing file attributes/permissions -* `chroot`: The [`chroot`(2)](chroot.md) syscall (\*) * `video`: May use [`ioctl`(2)](ioctl.md) and [`mmap`(2)](mmap.md) on framebuffer video devices * `settime`: Changing the system time and date * `setkeymap`: Changing the system keyboard layout (\*) diff --git a/Base/usr/share/man/man2/unveil.md b/Base/usr/share/man/man2/unveil.md index 5d39162188..9b45fe0235 100644 --- a/Base/usr/share/man/man2/unveil.md +++ b/Base/usr/share/man/man2/unveil.md @@ -97,5 +97,4 @@ unveil(nullptr, nullptr); ## See also * [`pledge`(2)](pledge.md) -* [`chroot`(2)](chroot.md) * [`Mitigations`(7)](../man7/Mitigations.md)