1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:17:44 +00:00

Kernel+Userland: Remove chroot functionality

We are not using this for anything and it's just been sitting there
gathering dust for well over a year, so let's stop carrying all this
complexity around for no good reason.
This commit is contained in:
Andreas Kling 2021-08-15 01:29:44 +02:00
parent 96d5d017b7
commit 1b739a72c2
19 changed files with 3 additions and 289 deletions

View file

@ -1,36 +0,0 @@
## Name
chroot - run a shell with a different filesystem root
## Synopsis
```**sh
# chroot <path> [program] [-o options]
```
## Description
This program uses the [`chroot`(2)](../man2/chroot.md) syscall to switch into a
different filesystem root and spawn a shell inside it.
It runs the given *program* (by default, `/bin/Shell`) inside the new root.
Mount options can be given in the same format as for [`mount`(8)](mount.md).
## Examples
```sh
# chroot /var/chroot
# pwd
/
```
```sh
# chroot -u 200:200 /var/chroot
$ id
uid=200(nona) gid=200(n/a)
```
## See also
* [`chroot`(2)](../man2/chroot.md)
* [`mount`(8)](mount.md)