1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-15 04:31:00 +00:00
serenity/Kernel/FileSystem/SysFS/Subsystems/Kernel
Liav A 5e062414c1 Kernel: Add support for jails
Our implementation for Jails resembles much of how FreeBSD jails are
working - it's essentially only a matter of using a RefPtr in the
Process class to a Jail object. Then, when we iterate over all processes
in various cases, we could ensure if either the current process is in
jail and therefore should be restricted what is visible in terms of
PID isolation, and also to be able to expose metadata about Jails in
/sys/kernel/jails node (which does not reveal anything to a process
which is in jail).

A lifetime model for the Jail object is currently plain simple - there's
simpy no way to manually delete a Jail object once it was created. Such
feature should be carefully designed to allow safe destruction of a Jail
without the possibility of releasing a process which is in Jail from the
actual jail. Each process which is attached into a Jail cannot leave it
until the end of a Process (i.e. when finalizing a Process). All jails
are kept being referenced in the JailManagement. When a last attached
process is finalized, the Jail is automatically destroyed.
2022-11-05 18:00:58 -06:00
..
Network
Variables Kernel: Add support for jails 2022-11-05 18:00:58 -06:00
CommandLine.cpp
CommandLine.h
CPUInfo.cpp Kernel: Don't expose processor information for aarch64 in sysfs 2022-10-26 20:01:45 +02:00
CPUInfo.h
Directory.cpp Kernel: Add support for jails 2022-11-05 18:00:58 -06:00
Directory.h
DiskUsage.cpp
DiskUsage.h
GlobalInformation.cpp
GlobalInformation.h
Interrupts.cpp Kernel: Include missing headers for various files 2022-10-26 20:01:45 +02:00
Interrupts.h
Jails.cpp Kernel: Add support for jails 2022-11-05 18:00:58 -06:00
Jails.h Kernel: Add support for jails 2022-11-05 18:00:58 -06:00
Keymap.cpp
Keymap.h
LoadBase.cpp
LoadBase.h
Log.cpp
Log.h
MemoryStatus.cpp
MemoryStatus.h
PowerStateSwitch.cpp Kernel+Userland: Move /sys/firmware/power_state to /sys/kernel directory 2022-10-25 15:33:34 -06:00
PowerStateSwitch.h Kernel+Userland: Move /sys/firmware/power_state to /sys/kernel directory 2022-10-25 15:33:34 -06:00
Processes.cpp Kernel: Add support for jails 2022-11-05 18:00:58 -06:00
Processes.h
Profile.cpp
Profile.h
SystemMode.cpp
SystemMode.h
SystemStatistics.cpp
SystemStatistics.h
Uptime.cpp
Uptime.h