1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00
serenity/Kernel/FileSystem
Daniel Bertalan 304c03f457 Kernel: Reject writable shared file mappings
We have no way of writing changes to memory-mapped files back to disk,
and software relying on this functionality for output would fail
miserably. Let's just return ENOTSUP instead to allow callers to fall
back to standard file IO instead of silently discarding writes.

This makes the LLD port work, which uses memory-mapped files to write
its output by default.
2021-11-17 00:15:30 +01:00
..
AnonymousFile.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
AnonymousFile.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
BlockBasedFileSystem.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
BlockBasedFileSystem.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
Custody.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
Custody.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
DevPtsFS.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
DevPtsFS.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
DevTmpFS.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
DevTmpFS.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
ext2_fs.h Everywhere: Behaviour => Behavior 2021-09-07 13:53:14 +02:00
ext2_types.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Ext2FileSystem.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Ext2FileSystem.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
FIFO.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
FIFO.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
File.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
File.h Kernel: Resolve clang-tidy readability-implicit-bool-conversion warnings 2021-11-14 22:52:35 +01:00
FileBackedFileSystem.cpp Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
FileBackedFileSystem.h Kernel: Rename FileDescription => OpenFileDescription 2021-09-07 13:53:14 +02:00
FileSystem.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
FileSystem.h Kernel: Resolve clang-tidy readability-make-member-function-const 2021-11-14 22:52:35 +01:00
Inode.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
Inode.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
InodeFile.cpp Kernel: Reject writable shared file mappings 2021-11-17 00:15:30 +01:00
InodeFile.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
InodeIdentifier.h Kernel: Remove unused InodeIdentifier::to_string() 2021-10-22 01:19:04 +02:00
InodeMetadata.h Kernel: Resolve clang-tidy readability-implicit-bool-conversion warnings 2021-11-14 22:52:35 +01:00
InodeWatcher.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
InodeWatcher.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
ISO9660FileSystem.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
ISO9660FileSystem.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Mount.cpp Kernel: Make VirtualFileSystem::Mount a top-level class 2021-07-11 00:51:06 +02:00
Mount.h Kernel/Ext2FS: Cache the root inode in a member variable 2021-07-18 01:53:04 +02:00
OpenFileDescription.cpp Kernel: Make Inode::traverse_as_directory() callback return ErrorOr 2021-11-10 21:58:58 +01:00
OpenFileDescription.h Kernel: Resolve clang-tidy readability-implicit-bool-conversion warnings 2021-11-14 22:52:35 +01:00
Plan9FileSystem.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Plan9FileSystem.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
ProcFS.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
ProcFS.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
SysFS.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
SysFS.h Kernel: Resolve clang-tidy readability-make-member-function-const 2021-11-14 22:52:35 +01:00
SysFSComponent.cpp Kernel: Make Inode::traverse_as_directory() callback return ErrorOr 2021-11-10 21:58:58 +01:00
SysFSComponent.h Kernel: Make Inode::traverse_as_directory() callback return ErrorOr 2021-11-10 21:58:58 +01:00
TmpFS.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
TmpFS.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
UnveilNode.h Kernel: Move UnveilNode.h into Kernel/FileSystem/ 2021-08-06 14:11:45 +02:00
VirtualFileSystem.cpp Kernel: Make Inode::traverse_as_directory() callback return ErrorOr 2021-11-10 21:58:58 +01:00
VirtualFileSystem.h Kernel: Make Inode::traverse_as_directory() callback return ErrorOr 2021-11-10 21:58:58 +01:00