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
..
2020-01-18 09:45:54 +01:00
2020-01-18 11:10:44 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-18 23:40:12 +01:00
2019-08-06 21:09:24 +02:00
2019-06-30 10:41:26 +02:00
2020-01-18 09:45:54 +01:00
2019-11-03 13:11:43 +01:00
2020-01-15 21:52:09 +01:00
2020-01-15 21:52:09 +01:00
2020-01-09 21:57:52 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-13 11:06:42 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-14 15:38:58 +01:00
2020-01-14 15:38:58 +01:00
2020-01-18 10:24:57 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-18 09:45:54 +01:00
2020-01-17 22:34:26 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-15 21:52:09 +01:00
2020-01-17 22:34:26 +01:00
2019-11-28 21:30:20 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 23:51:22 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-15 23:14:20 +01:00
2020-01-18 11:10:44 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-06 10:43:00 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00