docs(docs): R4.9 verifier and security follow-ups: §6 rows 19 (J2 device run, blocking before merge) and 20 (WebKit worker error trace); port 4173 in the exposure table as an owner-opened recette rule; serve.mjs post-bind check typed from the address; report-compare comment names the residual race
This commit is contained in:
1 parent
854d988c07
commit
49b812b9b4
6 files changed
+21
-11
No files matched your search
@@ -118,8 +118,10 @@ impl Files for Disk {
|
||||
}
|
||||
|
||||
fn read(&self, path: &str) -> Result<Vec<u8>, FileFailure> {
|
||||
// The type is checked before the open (a FIFO or a device is never opened), then
|
||||
// again on the handle (the path is not swapped for a directory in between).
|
||||
// The type is checked before the open (a FIFO or a device named on the command line
|
||||
// is not opened), then again on the handle, which refuses a path swapped in between;
|
||||
// a local writer swapping in a FIFO between the two calls can still make the open
|
||||
// wait (operator tool on the operator's own files, accepted).
|
||||
let regular = |meta: &fs::Metadata| {
|
||||
if !meta.is_file() {
|
||||
return Err(FileFailure::NotRegular);
|
||||
|
||||
Reference in new issue
Block a user