ladybird/Libraries
Sergey Bugaev dd54d13d8d Kernel+LibC: Allow passing mount flags to chroot()
Since a chroot is in many ways similar to a separate root mount, we can also
apply mount flags to it as if it was an actual mount. These flags will apply
whenever the chrooted process accesses its root directory, but not when other
processes access this same directory for the outside. Since it's common to
chdir("/") immediately after chrooting (so that files accessed through the
current directory inherit the same mount flags), this effectively allows one to
apply additional limitations to a process confined inside a chroot.

To this effect, sys$chroot() gains a mount_flags argument (exposed as
chroot_with_mount_flags() in userspace) which can be set to all the same values
as the flags argument for sys$mount(), and additionally to -1 to keep the flags
set for that file system. Note that passing 0 as mount_flags will unset any
flags that may have been set for the file system, not keep them.
2020-01-12 20:02:11 +01:00
..
LibAudio AK: Move the userspace SharedBuffer from LibC to AK 2020-01-01 18:53:34 +01:00
LibC Kernel+LibC: Allow passing mount flags to chroot() 2020-01-12 20:02:11 +01:00
LibCore SystemMonitor+LibCore: Show process pledges in SystemMonitor :^) 2020-01-11 21:33:12 +01:00
LibDraw LibDraw: Remove debug spam about loading system themes 2020-01-12 10:01:22 +01:00
LibELF Kernel+LibELF: Enable SMAP protection during non-syscall exec() 2020-01-10 10:57:06 +01:00
LibGUI TextEditor: Implement replacement functionality 2020-01-12 01:41:36 +01:00
LibHTML LibHTML: Fix broken build after Element::computed_style() change 2020-01-05 17:38:52 +01:00
LibIPC LibIPC: Let's start building custom message codecs for LibIPC 2019-12-30 02:41:45 +01:00
LibM Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00
LibMarkdown Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00
LibPCIDB Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00
LibProtocol AK: Move the userspace SharedBuffer from LibC to AK 2020-01-01 18:53:34 +01:00
LibPthread LibPthread: Fix incompatible pthread_setname_np(), pthread_getname_np() 2020-01-11 12:54:30 +01:00
LibThread LibPthread: Fix incompatible pthread_setname_np(), pthread_getname_np() 2020-01-11 12:54:30 +01:00
LibVT LibVT: Relayout TerminalWidget on font change 2020-01-08 21:12:40 +01:00
Makefile Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00