serenity/Kernel/Devices/TTY
Liav A. dd59fe35c7 Kernel+Userland: Reduce jails to be a simple boolean flag
The whole concept of Jails was far more complicated than I actually want
it to be, so let's reduce the complexity of how it works from now on.
Please note that we always leaked the attach count of a Jail object in
the fork syscall if it failed midway.
Instead, we should have attach to the jail just before registering the
new Process, so we don't need to worry about unsuccessful Process
creation.

The reduction of complexity in regard to jails means that instead of
relying on jails to provide PID isolation, we could simplify the whole
idea of them to be a simple SetOnce, and let the ProcessList (now called
ScopedProcessList) to be responsible for this type of isolation.

Therefore, we apply the following changes to do so:
- We make the Jail concept no longer a class of its own. Instead, we
  simplify the idea of being jailed to a simple ProtectedValues boolean
  flag. This means that we no longer check of matching jail pointers
  anywhere in the Kernel code.
  To set a process as jailed, a new prctl option was added to set a
  Kernel SetOnce boolean flag (so it cannot change ever again).
- We provide Process & Thread methods to iterate over process lists.
  A process can either iterate on the global process list, or if it's
  attached to a scoped process list, then only over that list.
  This essentially replaces the need of checking the Jail pointer of a
  process when iterating over process lists.
2024-07-21 11:44:23 +02:00
..
MasterPTY.cpp Kernel: Allocate all device major numbers within one known header file 2024-07-06 21:42:32 +02:00
MasterPTY.h Kernel: Resolve lock-inversion based deadlock in MasterPTY & BlockSet 2023-12-16 12:55:41 +01:00
PTYMultiplexer.cpp Kernel: Allocate all device major numbers within one known header file 2024-07-06 21:42:32 +02:00
PTYMultiplexer.h
SlavePTY.cpp Kernel: Allocate all device major numbers within one known header file 2024-07-06 21:42:32 +02:00
SlavePTY.h
TTY.cpp Kernel+Userland: Reduce jails to be a simple boolean flag 2024-07-21 11:44:23 +02:00
TTY.h Kernel: Allocate all device major numbers within one known header file 2024-07-06 21:42:32 +02:00
VirtualConsole.cpp Kernel: Allocate all device major numbers within one known header file 2024-07-06 21:42:32 +02:00
VirtualConsole.h Kernel: Remove the ConsoleManagement singleton 2024-07-04 22:20:35 +02:00