1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:08:12 +00:00
serenity/Kernel/FileSystem/SysFS
Liav A 718ae68621 Kernel+LibCore+LibC: Implement support for forcing unveil on exec
To accomplish this, we add another VeilState which is called
LockedInherited. The idea is to apply exec unveil data, similar to
execpromises of the pledge syscall, on the current exec'ed program
during the execve sequence. When applying the forced unveil data, the
veil state is set to be locked but the special state of LockedInherited
ensures that if the new program tries to unveil paths, the request will
silently be ignored, so the program will continue running without
receiving an error, but is still can only use the paths that were
unveiled before the exec syscall. This in turn, allows us to use the
unveil syscall with a special utility to sandbox other userland programs
in terms of what is visible to them on the filesystem, and is usable on
both programs that use or don't use the unveil syscall in their code.
2022-11-26 12:42:15 -07:00
..
Subsystems Kernel+LibCore+LibC: Implement support for forcing unveil on exec 2022-11-26 12:42:15 -07:00
Component.cpp Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
Component.h Kernel: Update atime/ctime/mtime timestamps atomically 2022-08-22 17:56:03 +02:00
DirectoryInode.cpp Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
DirectoryInode.h Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
FileSystem.cpp Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
FileSystem.h Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
Inode.cpp Kernel: Update the ".." inode for directories after a rename 2022-11-25 17:33:05 +01:00
Inode.h Kernel: Update the ".." inode for directories after a rename 2022-11-25 17:33:05 +01:00
LinkInode.cpp Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
LinkInode.h Kernel: Split the SysFS core files into smaller components 2022-11-08 02:54:48 -07:00
Registry.cpp Kernel/SysFS: Mark SysFSDirectory traverse and lookup methods as final 2022-07-15 12:29:23 +02:00
Registry.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
RootDirectory.cpp Kernel: Introduce global variables and stats in /sys/kernel directory 2022-10-25 15:33:34 -06:00
RootDirectory.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00