Files
ladybird/Libraries/LibC
Sergey Bugaev fdb71cdf8f Kernel: Support read-only filesystem mounts
This adds support for MS_RDONLY, a mount flag that tells the kernel to disallow
any attempts to write to the newly mounted filesystem. As this flag is
per-mount, and different mounts of the same filesystems (such as in case of bind
mounts) can have different mutability settings, you have to go though a custody
to find out if the filesystem is mounted read-only, instead of just asking the
filesystem itself whether it's inherently read-only.

This also adds a lot of checks we were previously missing; and moves some of
them to happen after more specific checks (such as regular permission checks).

One outstanding hole in this system is sys$mprotect(PROT_WRITE), as there's no
way we can know if the original file description this region has been mounted
from had been opened through a readonly mount point. Currently, we always allow
such sys$mprotect() calls to succeed, which effectively allows anyone to
circumvent the effect of MS_RDONLY. We should solve this one way or another.
2020-05-29 07:53:30 +02:00
..
2020-05-20 08:31:31 +02:00
2020-04-06 11:09:01 +02:00
2020-02-16 10:47:54 +01:00
2020-02-19 16:08:28 +01:00
2020-04-10 13:09:35 +02:00
2020-01-18 09:45:54 +01:00
2020-02-02 10:58:45 +01:00
2020-05-26 14:35:10 +02:00
2020-02-22 21:36:54 +01:00
2020-02-22 21:36:54 +01:00
2020-05-07 23:32:11 +02:00