ladybird/Kernel/FileSystem
Sergey Bugaev d0d13e2bf5 Kernel: Move setting file flags and r/w mode to VFS::open()
Previously, VFS::open() would only use the passed flags for permission checking
purposes, and Process::sys$open() would set them on the created FileDescription
explicitly. Now, they should be set by VFS::open() on any files being opened,
including files that the kernel opens internally.

This also lets us get rid of the explicit check for whether or not the returned
FileDescription was a preopen fd, and in fact, fixes a bug where a read-only
preopen fd without any other flags would be considered freshly opened (due to
O_RDONLY being indistinguishable from 0) and granted a new set of flags.
2020-01-18 23:51:22 +01:00
..
Custody.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Custody.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
DevPtsFS.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
DevPtsFS.h Kernel: Fix identifier casing 2020-01-18 23:51:22 +01:00
DiskBackedFileSystem.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
DiskBackedFileSystem.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ext2_fs.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ext2_types.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Ext2FileSystem.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Ext2FileSystem.h Kernel: Fix identifier casing 2020-01-18 23:51:22 +01:00
FIFO.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
FIFO.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
File.cpp Kernel: Move setting file flags and r/w mode to VFS::open() 2020-01-18 23:51:22 +01:00
File.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
FileDescription.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
FileDescription.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
FileSystem.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
FileSystem.h Kernel: Fix identifier casing 2020-01-18 23:51:22 +01:00
Inode.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Inode.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
InodeFile.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
InodeFile.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
InodeIdentifier.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
InodeMetadata.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
InodeWatcher.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
InodeWatcher.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ProcFS.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ProcFS.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
TmpFS.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
TmpFS.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
VirtualFileSystem.cpp Kernel: Move setting file flags and r/w mode to VFS::open() 2020-01-18 23:51:22 +01:00
VirtualFileSystem.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00